Skip to content

Commit

Permalink
ci: be specific about github action versions (#125)
Browse files Browse the repository at this point in the history
We're going to keep these up to date with dependabot in #124
  • Loading branch information
eopb authored Sep 13, 2024
1 parent 34a0538 commit 7e2c526
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 18 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
with:
toolchain: stable
- name: Run release-plz
uses: MarcoIeni/[email protected]
uses: MarcoIeni/[email protected].65
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Expand Down
40 changes: 25 additions & 15 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
os: [ubuntu-latest, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: taiki-e/install-action@cargo-hack
- uses: actions/[email protected]
- uses: taiki-e/[email protected]
with:
tool: cargo-hack
- name: build
run: cargo hack build --feature-powerset
test:
Expand All @@ -30,31 +32,37 @@ jobs:
os: [ubuntu-latest, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: taiki-e/install-action@cargo-hack
- uses: actions/[email protected]
- uses: taiki-e/[email protected]
with:
tool: cargo-hack
- name: test
run: cargo hack test --feature-powerset --exclude-features failing_tests
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.7
- name: fmt
run: cargo fmt --check
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.7
- name: doc
run: cargo doc --all-features
minimal:
runs-on: ubuntu-latest
name: ubuntu / stable / minimal-versions
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.7
- name: Install stable
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
with:
toolchain: stable
- name: Install nightly for -Zminimal-versions
uses: dtolnay/rust-toolchain@nightly
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
with:
toolchain: nightly
- name: rustup default stable
run: rustup default stable
- name: cargo update -Zminimal-versions
Expand All @@ -66,22 +74,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v4.1.7
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/[email protected]
- uses: taiki-e/[email protected]
with:
tool: cargo-hack
- name: Default features
run: cargo hack check --feature-powerset --locked --rust-version --ignore-private --workspace --all-targets
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v4.1.7
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
Expand Down

0 comments on commit 7e2c526

Please sign in to comment.