kxio/.forgejo/workflows/push-next.yml

63 lines
1.3 KiB
YAML
Raw Normal View History

name: Test
on:
push:
branches:
- next
pull_request:
branches:
- main
workflow_dispatch:
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
strategy:
matrix:
toolchain:
- name: stable
- name: nightly
steps:
- name: Checkout
uses: actions/checkout@v4
- 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
- name: Check TODOs
2025-01-12 14:11:27 +00:00
uses: https://git.kemitix.net/kemitix/forgejo-todo-checker@v1.3.0
- name: Machete
2025-01-12 14:11:27 +00:00
run: cargo +${{ matrix.toolchain.name }} machete
- name: Format
2025-01-12 14:11:27 +00:00
run: cargo +${{ matrix.toolchain.name }} fmt --all --check
- name: Clippy
2025-01-12 14:11:27 +00:00
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset clippy
- name: Build
2025-01-12 14:11:27 +00:00
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset build
- name: Test
2025-01-12 14:11:27 +00:00
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset test
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