2024-12-01 10:15:18 +00:00
|
|
|
name: Test
|
2024-10-29 22:11:26 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-12-01 10:15:18 +00:00
|
|
|
branches:
|
|
|
|
- next
|
2024-10-29 22:11:26 +00:00
|
|
|
pull_request:
|
2024-12-01 10:15:18 +00:00
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
workflow_dispatch:
|
2024-10-29 22:11:26 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: docker
|
|
|
|
|
2025-01-12 14:11:27 +00:00
|
|
|
container:
|
|
|
|
image:
|
|
|
|
git.kemitix.net/kemitix/rust:v3.0.0
|
|
|
|
|
2024-10-29 22:11:26 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
toolchain:
|
|
|
|
- name: stable
|
|
|
|
- name: nightly
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Check TODOs
|
2025-01-12 14:11:27 +00:00
|
|
|
uses: https://git.kemitix.net/kemitix/forgejo-todo-checker@v1.3.0
|
2024-10-29 22:11:26 +00:00
|
|
|
|
|
|
|
- name: Machete
|
2025-01-12 14:11:27 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} machete
|
2024-10-29 22:11:26 +00:00
|
|
|
|
|
|
|
- name: Format
|
2025-01-12 14:11:27 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} fmt --all --check
|
2024-10-29 22:11:26 +00:00
|
|
|
|
|
|
|
- name: Clippy
|
2025-01-12 14:11:27 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset clippy
|
2024-10-29 22:11:26 +00:00
|
|
|
|
|
|
|
- name: Build
|
2025-01-12 14:11:27 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset build
|
2024-10-29 22:11:26 +00:00
|
|
|
|
|
|
|
- name: Test
|
2025-01-12 14:11:27 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset test
|
2024-10-29 22:11:26 +00:00
|
|
|
|
2024-11-14 10:21:29 +00:00
|
|
|
- name: Mutations
|
2025-01-12 14:11:27 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} mutants -vV --in-place
|
2024-11-14 10:21:29 +00:00
|
|
|
|