Skip to content

Commit

Permalink
Fix GitHub CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenperera committed Oct 6, 2024
1 parent 6442c1d commit 7797c63
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,29 @@ env:

jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.52.0
- stable
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install toolchain
uses: actions-rs/toolchain@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
toolchain: stable
components: clippy
override: true

- name: Run cargo clippy
run: cargo test
# clippy
- uses: clechasseur/rs-clippy-check@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}

- run: cargo clippy -- -D warnings

- name: Run cargo test
# test
- name: Cargo Test
run: cargo test

0 comments on commit 7797c63

Please sign in to comment.