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

62 lines
1.3 KiB
YAML
Raw Normal View History

2025-01-12 13:58:32 +00:00
name: Test
on:
push:
2025-01-12 13:58:32 +00:00
branches:
- next
pull_request:
2025-01-12 13:58:32 +00:00
branches:
- main
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: docker
2025-01-12 13:58:32 +00:00
container:
image:
git.kemitix.net/kemitix/rust:v4.0.1
2025-01-12 13:58:32 +00:00
strategy:
matrix:
toolchain:
- name: stable
- name: nightly
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Ignored Files
run: check-for-ignored
- name: Check TODOs
2025-01-12 13:58:32 +00:00
uses: https://git.kemitix.net/kemitix/forgejo-todo-checker@v1.3.0
- name: Machete
2025-01-12 13:58:32 +00:00
run: cargo +${{ matrix.toolchain.name }} machete
- name: Format
2025-01-12 13:58:32 +00:00
run: cargo +${{ matrix.toolchain.name }} fmt --all --check
2025-01-16 14:51:09 +00:00
- name: Install dbus-dev
run: |
if [ -f "$(which apk)" ] && [ -x "$(which apk)" ]; then
apk add dbus-dev
fi
- name: Clippy
2025-01-12 13:58:32 +00:00
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset clippy
- name: Build
2025-01-12 13:58:32 +00:00
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset build
- name: Test
2025-01-12 13:58:32 +00:00
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset test
# - name: Mutations
# run: cargo +${{ matrix.toolchain.name }} mutants -vV --in-place