rust/.forgejo/workflows/test.yml

38 lines
747 B
YAML
Raw Normal View History

on:
push:
branches:
- next
2024-05-16 18:52:20 +01:00
jobs:
test:
runs-on: docker
container:
image:
git.kemitix.net/kemitix/rust:v3.0.0
2024-09-16 17:25:07 +01:00
strategy:
matrix:
toolchain:
- name: stable
- name: nightly
- name: 1.74.1
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
run: cargo machete
2024-09-17 15:01:39 +01:00
- name: Format
run: cargo +${{ matrix.toolchain.name }} fmt --check
- name: Clippy
run: cargo +${{ matrix.toolchain.name }} clippy
- name: Test
run: cargo +${{ matrix.toolchain.name }} test
2024-05-16 19:54:56 +01:00
- name: Build
run: cargo +${{ matrix.toolchain.name }} build
2024-05-16 19:54:56 +01:00
- name: Run
run: cargo +${{ matrix.toolchain.name }} run