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

47 lines
1,006 B
YAML
Raw Normal View History

on:
push:
branches:
- next
2024-05-16 18:52:20 +01:00
jobs:
test:
runs-on: docker
container:
image:
2025-01-14 20:59:32 +00:00
git.kemitix.net/kemitix/rust:latest
2024-09-16 17:25:07 +01:00
strategy:
matrix:
toolchain:
- name: stable
- name: nightly
2024-05-16 18:52:20 +01:00
steps:
2024-05-16 19:53:35 +01:00
- uses: actions/checkout@v4
- name: Ignored Files
2025-01-13 09:04:18 +00:00
run: check-for-ignored
# run: |
# IGNORED=$(git ls-files --cached -i --exclude-standard)
# if [ -n "$IGNORED" ]
# then
# echo "Ignored files present:\n$IGNORED"
# exit 1
# fi
2024-09-17 15:01:39 +01:00
- name: Machete
run: cargo machete
2024-09-17 15:01:39 +01:00
- name: Format
run: cargo +${{ matrix.toolchain.name }} fmt --check
- name: Clippy
run: cargo +${{ matrix.toolchain.name }} clippy
- name: Test
run: cargo +${{ matrix.toolchain.name }} test
2024-05-16 19:54:56 +01:00
- name: Build
run: cargo +${{ matrix.toolchain.name }} build
2024-05-16 19:54:56 +01:00
- name: Run
run: cargo +${{ matrix.toolchain.name }} run