mirror of
https://github.com/RGBCube/alejandra
synced 2025-08-01 04:57:44 +00:00
feat: coverage job
This commit is contained in:
parent
43ca294239
commit
4c15fadfa2
1 changed files with 20 additions and 3 deletions
23
.github/workflows/pr.yaml
vendored
23
.github/workflows/pr.yaml
vendored
|
@ -8,16 +8,33 @@ concurrency:
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
group: ${{ github.actor }}
|
group: ${{ github.actor }}
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
pr:
|
||||||
|
name: PR
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Build
|
- name: Coverage
|
||||||
uses: docker://nixos/nix
|
uses: docker://nixos/nix
|
||||||
with:
|
with:
|
||||||
args:
|
args:
|
||||||
nix build
|
bash -c '
|
||||||
|
nix
|
||||||
|
--extra-experimental-features flakes
|
||||||
|
--extra-experimental-features nix-command
|
||||||
|
profile install direnv;
|
||||||
|
|
||||||
|
direnv allow;
|
||||||
|
|
||||||
|
cargo tarpaulin;
|
||||||
|
'
|
||||||
|
|
||||||
|
- name: Build and Test
|
||||||
|
uses: docker://nixos/nix
|
||||||
|
with:
|
||||||
|
args:
|
||||||
|
nix
|
||||||
--extra-experimental-features flakes
|
--extra-experimental-features flakes
|
||||||
--extra-experimental-features nix-command
|
--extra-experimental-features nix-command
|
||||||
|
build
|
||||||
--print-build-logs
|
--print-build-logs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue