@@ -3,9 +3,9 @@ name: Build and Test
33on :
44 merge_group :
55 pull_request :
6- types : [opened, synchronize, reopened, ready_for_review]
76 branches :
87 - main
8+ - dev
99 - ' feat/**'
1010 - release-candidate
1111 workflow_dispatch :
@@ -16,33 +16,44 @@ concurrency:
1616
1717jobs :
1818 linux-test :
19- # Change to buildjet-16vcpu- ubuntu-2204 for a more powerful runner (GitHub App must be enabled)
19+ # Change to warp- ubuntu-latest-x64-16x for a more powerful runner (GitHub App must be enabled for this repo )
2020 runs-on : ubuntu-latest
2121 steps :
2222 - uses : actions/checkout@v4
2323 with :
24- repository : lurk-lab /ci-workflows
24+ repository : argumentcomputer /ci-workflows
2525 - uses : ./.github/actions/ci-env
2626 - uses : actions/checkout@v4
27- with :
28- submodules : recursive
2927 - uses : dtolnay/rust-toolchain@stable
3028 - uses : taiki-e/install-action@nextest
3129 - uses : Swatinem/rust-cache@v2
3230 - name : Linux Tests
3331 run : |
3432 cargo nextest run --profile ci --cargo-profile dev-ci --workspace
3533
36- # Wasm build, rustfmt, clippy, doctests, and MSRV
37- code-quality :
38- uses : lurk-lab/ci-workflows/.github/workflows/lints.yml@main
39-
40- # Check documentation links aren't broken
41- link-checker :
42- uses : lurk-lab/ci-workflows/.github/workflows/links-check.yml@main
43- with :
44- fail-fast : true
45-
46- # Lint dependencies for licensing and auditing issues as per `deny.toml`
47- licenses-audits :
48- uses : lurk-lab/ci-workflows/.github/workflows/licenses-audits.yml@main
34+ lints :
35+ runs-on : ubuntu-latest
36+ steps :
37+ - uses : actions/checkout@v4
38+ with :
39+ repository : argumentcomputer/ci-workflows
40+ - uses : ./.github/actions/ci-env
41+ - uses : actions/checkout@v4
42+ - uses : dtolnay/rust-toolchain@stable
43+ - uses : Swatinem/rust-cache@v2
44+ - name : Check Rustfmt code style
45+ run : cargo fmt --all --check
46+ - name : Check *everything* compiles
47+ run : cargo check --all-targets --all-features --workspace
48+ - name : Check clippy lints
49+ run : cargo clippy --workspace --all-targets -- -D warnings
50+ - name : Doctests
51+ run : cargo test --doc --workspace
52+ - name : Get Rust version
53+ run : |
54+ echo "RUST_VERSION=$(awk -F '"' '/^channel/ {print $2}' rust-toolchain.toml)" | tee -a $GITHUB_ENV
55+ # Lint dependencies for licensing and auditing issues as per `deny.toml`
56+ - name : Cargo-deny
57+ uses : EmbarkStudios/cargo-deny-action@v2
58+ with :
59+ rust-version : ${{ env.RUST_VERSION }}
0 commit comments