2024-08-11 07:15:31 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- next
|
2024-05-16 18:52:20 +01:00
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: docker
|
2025-01-12 11:18:19 +00:00
|
|
|
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
|
|
|
|
|
2025-01-13 08:43:00 +00:00
|
|
|
- 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
|
2025-01-13 08:43:00 +00:00
|
|
|
|
2024-09-17 15:01:39 +01:00
|
|
|
- name: Machete
|
2025-01-12 11:18:19 +00:00
|
|
|
run: cargo machete
|
2024-09-17 15:01:39 +01:00
|
|
|
|
2024-09-17 10:58:08 +01:00
|
|
|
- name: Format
|
2025-01-12 11:18:19 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} fmt --check
|
2024-09-17 10:58:08 +01:00
|
|
|
|
|
|
|
- name: Clippy
|
2025-01-12 11:18:19 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} clippy
|
2024-09-17 10:58:08 +01:00
|
|
|
|
2024-09-17 08:34:04 +01:00
|
|
|
- name: Test
|
2025-01-12 11:18:19 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} test
|
2024-05-16 19:54:56 +01:00
|
|
|
|
2024-09-17 08:34:04 +01:00
|
|
|
- name: Build
|
2025-01-12 11:18:19 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} build
|
2024-05-16 19:54:56 +01:00
|
|
|
|
2024-09-17 08:34:04 +01:00
|
|
|
- name: Run
|
2025-01-12 11:18:19 +00:00
|
|
|
run: cargo +${{ matrix.toolchain.name }} run
|