Skip to content

Commit

Permalink
Fix audit step in daily workflow and speed up testing (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshtonStephens authored Sep 11, 2023
1 parent 48617eb commit 1e5a018
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
version: "0.36.13"

- name: Audit
run: cargo make audit
run: cargo make --profile github-actions audit

- uses: actions/upload-artifact@v3
with:
Expand All @@ -55,8 +55,8 @@ jobs:
with:
ref: ${{ env.BRANCH }}

- name: Nextest with release
run: cargo make test
- name: Test with release
run: cargo make --profile github-actions test

publish:
needs: intense-tests
Expand Down
4 changes: 3 additions & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ install_crate = { crate_name = "cargo-llvm-cov", version = "0.5.25", binary = "c

[tasks._install-audit]
private = true
install_crate = { crate_name = "cargo-audit", version = "0.17.6", binary = "cargo", "test_arg" = ["audit" , "--help"]}
install_crate = { crate_name = "cargo-audit", version = "0.18.1", binary = "cargo", "test_arg" = ["audit" , "--help"]}

[tasks.install]
dependencies = [
Expand Down Expand Up @@ -149,6 +149,7 @@ command = "cargo"
args = ["build", "--release"]

[tasks.test]
workspace = false
dependencies = ["_install-test-framework"]
command = "cargo"
args = ["${TEST_FRAMEWORK}", "run", "--release"]
Expand All @@ -161,6 +162,7 @@ args = ["doc"]
# ------

[tasks.audit]
workspace = false # Audit must run in workspace root.
dependencies = ["_install-audit"]
command = "cargo"
args = ["audit", "-D", "warnings"]
Expand Down

0 comments on commit 1e5a018

Please sign in to comment.