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