2024-09-17 16:05:56 +01:00
|
|
|
name: Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- next
|
2024-09-21 22:07:04 +01:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-09-17 16:11:15 +01:00
|
|
|
workflow_dispatch:
|
2024-09-17 16:05:56 +01:00
|
|
|
|
2024-09-21 22:07:04 +01:00
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
2024-09-17 16:05:56 +01:00
|
|
|
jobs:
|
2024-11-28 17:42:33 +00:00
|
|
|
build:
|
2024-09-17 16:05:56 +01:00
|
|
|
runs-on: docker
|
2024-11-28 17:42:33 +00:00
|
|
|
|
2025-01-12 13:43:46 +00:00
|
|
|
container:
|
|
|
|
image:
|
|
|
|
git.kemitix.net/kemitix/rust:v3.0.0
|
|
|
|
|
2024-09-21 22:07:04 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
toolchain:
|
|
|
|
- name: stable
|
|
|
|
- name: nightly
|
|
|
|
|
2024-09-17 16:05:56 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-09-20 15:15:50 +00:00
|
|
|
uses: actions/checkout@v4
|
2024-09-17 16:05:56 +01:00
|
|
|
|
2025-01-13 08:41:37 +00:00
|
|
|
- name: Ignored Files
|
|
|
|
run: |
|
|
|
|
IGNORED=$(git ls-files --cached -i --exclude-standard)
|
|
|
|
if [ -n "$IGNORED" ]
|
|
|
|
then
|
|
|
|
echo "Ignored files present:\n$IGNORED"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2024-09-22 08:48:30 +01:00
|
|
|
- name: Check TODOs (Origin)
|
2025-01-05 11:01:01 +00:00
|
|
|
uses: https://git.kemitix.net/kemitix/forgejo-todo-checker@v1.3.0
|
2024-09-21 22:07:04 +01:00
|
|
|
|
2024-09-22 08:48:30 +01:00
|
|
|
- name: Check TODOs (Mirror)
|
2024-11-15 17:39:59 +00:00
|
|
|
uses: kemitix/todo-checker@v1.1.0
|
2024-09-22 08:48:30 +01:00
|
|
|
|
2024-09-21 22:07:04 +01:00
|
|
|
- name: Machete
|
2025-01-12 13:43:46 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} machete
|
2024-11-28 17:42:33 +00:00
|
|
|
|
2024-09-21 22:07:04 +01:00
|
|
|
- name: Format
|
2025-01-12 13:43:46 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} fmt --all --check
|
2024-09-21 22:07:04 +01:00
|
|
|
|
|
|
|
- name: Clippy
|
2025-01-12 13:43:46 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset clippy
|
2024-09-21 22:07:04 +01:00
|
|
|
|
|
|
|
- name: Build
|
2025-01-12 13:43:46 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset build
|
2024-09-21 22:07:04 +01:00
|
|
|
|
|
|
|
- name: Test
|
2025-01-12 13:43:46 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset test
|
2024-11-28 17:42:33 +00:00
|
|
|
|
|
|
|
- name: Mutations
|
2025-01-12 13:43:46 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} mutants -vV --in-place
|
2024-11-28 17:42:33 +00:00
|
|
|
|