| 1 |
on: |
| 2 |
push: |
| 3 |
branches: |
| 4 |
- main |
| 5 |
pull_request: |
| 6 |
|
| 7 |
jobs: |
| 8 |
|
| 9 |
test: |
| 10 |
runs-on: codeberg-small-lazy |
| 11 |
container: |
| 12 |
image: quay.io/fedora/nodejs-24:latest |
| 13 |
strategy: |
| 14 |
matrix: |
| 15 |
toolchain: ["stable", "nightly", "1.85"] |
| 16 |
steps: |
| 17 |
- uses: actions/checkout@v4 |
| 18 |
- name: dtolnay/rust-toolchain@master |
| 19 |
uses: https://github.com/dtolnay/rust-toolchain@master |
| 20 |
with: |
| 21 |
toolchain: "${{ matrix.toolchain }}" |
| 22 |
- name: cargo test |
| 23 |
run: cargo test --verbose |
| 24 |
|
| 25 |
clippy: |
| 26 |
runs-on: codeberg-small-lazy |
| 27 |
container: |
| 28 |
image: quay.io/fedora/nodejs-24:latest |
| 29 |
steps: |
| 30 |
- uses: actions/checkout@v4 |
| 31 |
- name: dtolnay/rust-toolchain@master |
| 32 |
uses: https://github.com/dtolnay/rust-toolchain@master |
| 33 |
with: |
| 34 |
toolchain: nightly |
| 35 |
components: clippy |
| 36 |
- name: cargo clippy |
| 37 |
run: cargo clippy --workspace --verbose --all-features |
| 38 |
|
| 39 |
rustfmt: |
| 40 |
runs-on: codeberg-small-lazy |
| 41 |
container: |
| 42 |
image: quay.io/fedora/nodejs-24:latest |
| 43 |
steps: |
| 44 |
- uses: actions/checkout@v4 |
| 45 |
- name: dtolnay/rust-toolchain@master |
| 46 |
uses: https://github.com/dtolnay/rust-toolchain@master |
| 47 |
with: |
| 48 |
toolchain: nightly |
| 49 |
components: rustfmt |
| 50 |
- name: rustfmt |
| 51 |
run: cargo fmt --check |
| 52 |
|