Skip to content

Commit

Permalink
Update lint and test
Browse files Browse the repository at this point in the history
  • Loading branch information
phklive committed Jun 18, 2024
1 parent a133821 commit bcebd85
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
push:
branches: [main, next]
pull_request:
types: [opened, reopened, synchronize]
types: [opened, reopened, synchronize]

jobs:
version:
Expand All @@ -32,12 +32,23 @@ jobs:
make format-check
clippy:
name: clippy stable on ubuntu-latest
name: clippy nightly on ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Install minimal Rust with clippy
- name: Clippy
run: |
rustup update --no-self-update nightly
rustup +nightly component add clippy
make clippy
make clippy
doc:
name: doc stable on ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Build docs
run: |
rustup update --no-self-update
make doc
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ on:
push:
branches: [main, next]
pull_request:
types: [opened, reopened, synchronize]
types: [opened, reopened, synchronize]

jobs:
test:
name: test ${{matrix.toolchain}} on ${{matrix.os}} with ${{matrix.args}}
name: test ${{matrix.toolchain}} on ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
toolchain: [stable, nightly]
os: [ubuntu, windows-2022]
os: [ubuntu-latest]
timeout-minutes: 30
steps:
- uses: actions/checkout@main
- uses: taiki-e/install-action@nextest
- uses: taiki-e/install-action@nextest
- name: Perform tests
run: |
rustup update --no-self-update ${{matrix.toolchain}}
make test
rustup update --no-self-update ${{matrix.toolchain}}
make test

0 comments on commit bcebd85

Please sign in to comment.