mirror of
https://github.com/RGBCube/alejandra
synced 2025-08-01 04:57:44 +00:00
feat: build then test
This commit is contained in:
parent
c3722704e6
commit
874c3e7e51
1 changed files with 14 additions and 13 deletions
27
.github/workflows/pr.yaml
vendored
27
.github/workflows/pr.yaml
vendored
|
@ -14,11 +14,23 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Coverage
|
|
||||||
|
- name: Build
|
||||||
uses: docker://nixos/nix
|
uses: docker://nixos/nix
|
||||||
with:
|
with:
|
||||||
args: >
|
args: >
|
||||||
bash -ex -c "
|
nix
|
||||||
|
--extra-experimental-features flakes
|
||||||
|
--extra-experimental-features nix-command
|
||||||
|
--extra-substituters http://172.17.0.1:5000?trusted=1
|
||||||
|
build
|
||||||
|
--print-build-logs
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
uses: docker://nixos/nix
|
||||||
|
with:
|
||||||
|
args: >
|
||||||
|
bash -ec "
|
||||||
source <( \
|
source <( \
|
||||||
nix \
|
nix \
|
||||||
--extra-experimental-features flakes \
|
--extra-experimental-features flakes \
|
||||||
|
@ -31,14 +43,3 @@ jobs:
|
||||||
|
|
||||||
cargo tarpaulin
|
cargo tarpaulin
|
||||||
"
|
"
|
||||||
|
|
||||||
- name: Build and Test
|
|
||||||
uses: docker://nixos/nix
|
|
||||||
with:
|
|
||||||
args: >
|
|
||||||
nix
|
|
||||||
--extra-experimental-features flakes
|
|
||||||
--extra-experimental-features nix-command
|
|
||||||
--extra-substituters http://172.17.0.1:5000?trusted=1
|
|
||||||
build
|
|
||||||
--print-build-logs
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue