Skip to content

Commit 4f700d4

Browse files
committed
Use actions/checkout@v3
Instead of the unstable master branch.
1 parent 3aa8d82 commit 4f700d4

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
env:
88
CARGO_TERM_COLOR: always
99
RUST_BACKTRACE: full
10-
1110
jobs:
1211
Test:
1312
name: Test
@@ -36,25 +35,23 @@ jobs:
3635
os: windows-latest
3736
rust: stable
3837
steps:
39-
- uses: actions/checkout@master
38+
- uses: actions/checkout@v3
4039
- name: Install Rust (rustup)
4140
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
4241
shell: bash
4342
- name: Install cargo-hack
4443
uses: taiki-e/install-action@cargo-hack
4544
- name: Run tests
4645
run: cargo hack test --feature-powerset && cargo hack test --feature-powerset --release
47-
4846
Rustfmt:
4947
name: Rustfmt
5048
runs-on: ubuntu-latest
5149
steps:
52-
- uses: actions/checkout@master
50+
- uses: actions/checkout@v3
5351
- name: Install Rust
5452
run: rustup update stable && rustup default stable && rustup component add rustfmt
5553
- name: Check formatting
5654
run: cargo fmt --all -- --check
57-
5855
Check:
5956
name: Check
6057
runs-on: ubuntu-latest
@@ -63,7 +60,7 @@ jobs:
6360
matrix:
6461
target: ["aarch64-apple-ios", "aarch64-linux-android", "x86_64-apple-darwin", "x86_64-fuchsia", "x86_64-pc-windows-msvc", "x86_64-pc-solaris", "x86_64-unknown-illumos", "x86_64-unknown-linux-gnu", "x86_64-unknown-netbsd", "x86_64-unknown-redox"]
6562
steps:
66-
- uses: actions/checkout@master
63+
- uses: actions/checkout@v3
6764
- name: Install Rust
6865
run: rustup update stable && rustup default stable
6966
- name: Install Target
@@ -72,12 +69,11 @@ jobs:
7269
uses: taiki-e/install-action@cargo-hack
7370
- name: Run check
7471
run: cargo hack check --feature-powerset --all-targets --examples --bins --tests --target ${{ matrix.target }}
75-
7672
Clippy:
7773
name: Clippy
7874
runs-on: ubuntu-latest
7975
steps:
80-
- uses: actions/checkout@master
76+
- uses: actions/checkout@v3
8177
- name: Install Rust
8278
run: rustup update stable && rustup default stable && rustup component add clippy
8379
- name: Run Clippy

0 commit comments

Comments
 (0)