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

57 lines
1.1 KiB
YAML
Raw Normal View History

2024-12-03 06:46:50 +00:00
name: Test
2024-07-30 07:11:27 +01:00
on:
push:
2024-12-03 06:46:50 +00:00
branches:
- next
2024-07-30 07:11:27 +01:00
pull_request:
2024-12-03 06:46:50 +00:00
branches:
- main
workflow_dispatch:
2024-07-30 07:11:27 +01:00
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: docker
2024-12-03 06:46:50 +00:00
container:
image:
git.kemitix.net/kemitix/rust:v3.0.0
2024-09-17 14:42:23 +01:00
strategy:
matrix:
toolchain:
- name: stable
- name: nightly
2024-07-30 07:11:27 +01:00
steps:
- name: Checkout
uses: actions/checkout@v4
2024-12-03 06:46:50 +00:00
- name: Check TODOs
uses: https://git.kemitix.net/kemitix/forgejo-todo-checker@v1.3.0
2024-07-30 07:11:27 +01:00
2024-12-03 06:46:50 +00:00
- name: Machete
run: cargo +${{ matrix.toolchain.name }} machete
- name: Format
run: cargo +${{ matrix.toolchain.name }} fmt --all --check
2024-07-30 07:11:27 +01:00
- name: Clippy
2024-12-03 06:46:50 +00:00
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset clippy
2024-07-30 07:11:27 +01:00
- name: Build
2024-12-03 06:46:50 +00:00
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset build
2024-07-30 07:11:27 +01:00
- name: Test
2024-12-03 06:46:50 +00:00
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset test
2024-07-30 07:11:27 +01:00
- name: Integration
2024-12-03 06:46:50 +00:00
run: ./test.sh
- name: Mutations
run: cargo +${{ matrix.toolchain.name }} mutants -vV --in-place