rust/.forgejo/workflows/test.yml
Paul Campbell 75ceb6061c
All checks were successful
/ test (map[name:nightly]) (push) Successful in 2m42s
/ test (map[name:v1.81.0]) (push) Successful in 40s
/ test (map[name:stable]) (push) Successful in 4m16s
feat: add cargo machete to image
2024-09-17 15:03:34 +01:00

46 lines
1.1 KiB
YAML

on:
push:
branches:
- next
jobs:
test:
runs-on: docker
strategy:
matrix:
toolchain:
- name: stable
- name: nightly
- name: v1.81.0
steps:
- uses: actions/checkout@v4
- name: Machete
uses: https://git.kemitix.net/kemitix/rust@next
with:
args: cargo machete
- name: Format
uses: https://git.kemitix.net/kemitix/rust@next
with:
args: ${{ matrix.toolchain.name }} cargo fmt --check
- name: Clippy
uses: https://git.kemitix.net/kemitix/rust@next
with:
args: ${{ matrix.toolchain.name }} cargo clippy
- name: Test
uses: https://git.kemitix.net/kemitix/rust@next
with:
args: ${{ matrix.toolchain.name }} cargo test
- name: Build
uses: https://git.kemitix.net/kemitix/rust@next
with:
args: ${{ matrix.toolchain.name }} cargo build
- name: Run
uses: https://git.kemitix.net/kemitix/rust@next
with:
args: ${{ matrix.toolchain.name }} cargo run