Skip to content

Commit

Permalink
test: do not rely on actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Swaagie committed Feb 11, 2025
1 parent 3012a1a commit 1c4212c
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Stable with rustfmt and clippy
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
- name: Release build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
- uses: actions/checkout@v4
- name: Setup rustfmt and clippy
shell: bash
run: |
rustup component add rustfmt clippy
- name: Run clippy check
shell: bash
run: |
cargo clippy --all-features
- name: Run rustfmt check
shell: bash
run: |
cargo fmt --all -- --check
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
shell: bash
run: |
cargo test --all-features
- name: Release build
run: |
cargo build --release --all-features
- name: Publish
if: ${{ contains(github.event.head_commit.message, 'release') }}
run: cargo publish
Expand Down

0 comments on commit 1c4212c

Please sign in to comment.