build: check for ignored files being included in repo
This commit is contained in:
parent
1a89052244
commit
5d372a60de
1 changed files with 9 additions and 0 deletions
46
.forgejo/workflows/push-next.yml
Normal file
46
.forgejo/workflows/push-next.yml
Normal file
|
@ -0,0 +1,46 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- next
|
||||
jobs:
|
||||
test:
|
||||
runs-on: docker
|
||||
container:
|
||||
image:
|
||||
git.kemitix.net/kemitix/rust:v3.0.0
|
||||
strategy:
|
||||
matrix:
|
||||
toolchain:
|
||||
- name: stable
|
||||
- name: nightly
|
||||
- name: 1.74.1
|
||||
|
||||
steps:
|
||||
- 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: Machete
|
||||
run: cargo machete
|
||||
|
||||
- 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
|
||||
|
||||
- name: Build
|
||||
run: cargo +${{ matrix.toolchain.name }} build
|
||||
|
||||
- name: Run
|
||||
run: cargo +${{ matrix.toolchain.name }} run
|
Loading…
Add table
Add a link
Reference in a new issue