rust/.forgejo/workflows/test.yml

47 lines
1.1 KiB
YAML
Raw Normal View History

on:
push:
branches:
- next
2024-05-16 18:52:20 +01:00
jobs:
test:
runs-on: docker
2024-09-16 17:25:07 +01:00
strategy:
matrix:
toolchain:
- name: stable
- name: nightly
- name: v1.81.0
2024-09-16 17:25:07 +01:00
2024-05-16 18:52:20 +01:00
steps:
2024-05-16 19:53:35 +01:00
- uses: actions/checkout@v4
2024-09-17 15:01:39 +01:00
- name: Machete
2024-11-14 09:17:34 +00:00
uses: https://git.kemitix.net/kemitix/rust@v2.4.1
2024-09-17 15:01:39 +01:00
with:
args: cargo machete
- name: Format
2024-11-14 09:17:34 +00:00
uses: https://git.kemitix.net/kemitix/rust@v2.4.1
with:
args: ${{ matrix.toolchain.name }} cargo fmt --check
- name: Clippy
2024-11-14 09:17:34 +00:00
uses: https://git.kemitix.net/kemitix/rust@v2.4.1
with:
args: ${{ matrix.toolchain.name }} cargo clippy
- name: Test
2024-11-14 09:17:34 +00:00
uses: https://git.kemitix.net/kemitix/rust@v2.4.1
2024-05-16 18:52:20 +01:00
with:
2024-09-16 17:25:07 +01:00
args: ${{ matrix.toolchain.name }} cargo test
2024-05-16 19:54:56 +01:00
- name: Build
2024-11-14 09:17:34 +00:00
uses: https://git.kemitix.net/kemitix/rust@v2.4.1
2024-05-16 19:47:20 +01:00
with:
2024-09-16 17:25:07 +01:00
args: ${{ matrix.toolchain.name }} cargo build
2024-05-16 19:54:56 +01:00
- name: Run
2024-11-14 09:17:34 +00:00
uses: https://git.kemitix.net/kemitix/rust@v2.4.1
2024-05-16 19:54:56 +01:00
with:
2024-09-16 17:25:07 +01:00
args: ${{ matrix.toolchain.name }} cargo run