Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Salin authored and zakarumych committed Mar 3, 2024
1 parent faea97b commit 845b2db
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 72 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,8 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all --features=sync
run: cargo test --all --features=sync
12 changes: 3 additions & 9 deletions .github/workflows/check-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --all --features=sync
run: cargo check --all --features=sync
11 changes: 3 additions & 8 deletions .github/workflows/check-targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,10 @@ jobs:
- x86_64-unknown-linux-gnu
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ matrix.target }}
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --all --features=sync
run: cargo check --all --features=sync
10 changes: 3 additions & 7 deletions .github/workflows/check-toolchains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@ jobs:
matrix:
rust-toolchain: [stable, nightly]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install ${{ matrix.rust-toolchain }} toolchain
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust-toolchain }}
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --all --features=sync
run: cargo check --all --features=sync
12 changes: 3 additions & 9 deletions .github/workflows/fast-pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all --features sync
run: cargo test --all --features=sync
31 changes: 14 additions & 17 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,27 @@ jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- name: Ensure rustfmt is installed
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
components: rustfmt
- name: Rustfmt check
uses: actions-rust-lang/rustfmt@v1

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install nightly toolchain with clippy available
uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- name: Ensure clippy is installed
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt
components: clippy
- name: Run cargo clippy
uses: actions-rs/clippy-check@v1
uses: giraffate/clippy-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all --all-features -- -D warnings
github_token: ${{ secrets.GITHUB_TOKEN }}
clippy_flags: --all --all-features -- -D warnings
reporter: 'github-pr-review'
6 changes: 4 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: release-please

on:
push:
branches:
- main
name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: release-please-action
package-name: release-please-action
6 changes: 3 additions & 3 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
if: ${{ github.event.label.name == 'ready-to-merge' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/audit-check@v1
- uses: actions/checkout@v4
- uses: actions-rust-lang/audit@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 4 additions & 8 deletions .github/workflows/test-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,10 @@ jobs:
sync: ["", "sync,"]
nightly: ["", "nightly,"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: test
args: --all --features=${{ matrix.std }}${{ matrix.sync }}${{ matrix.nightly }}
- name: Run cargo test
run: cargo test --all --features=${{ matrix.std }}${{ matrix.sync }}${{ matrix.nightly }}

0 comments on commit 845b2db

Please sign in to comment.