Compare commits
10 commits
Author | SHA1 | Date | |
---|---|---|---|
284627273b | |||
77336629af | |||
|
b526e3d9d8 | ||
7ca7d94781 | |||
30f930f333 | |||
f41eb41ea8 | |||
|
dae1bd4700 | ||
|
2150971f70 | ||
|
e6931eb049 | ||
|
17492066eb |
5 changed files with 38 additions and 28 deletions
|
@ -16,20 +16,23 @@ jobs:
|
|||
release-plz:
|
||||
name: Release-plz
|
||||
runs-on: docker
|
||||
|
||||
container:
|
||||
image:
|
||||
git.kemitix.net/kemitix/rust:v4.0.1
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Run release-plz release-pr
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
||||
with:
|
||||
args: release-plz release-pr --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }}
|
||||
run: release-plz release-pr --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }}
|
||||
env:
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||
|
||||
- name: Run release-plz release
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
||||
with:
|
||||
args: release-plz release --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }}
|
||||
run: release-plz release --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }}
|
||||
env:
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||
|
|
|
@ -16,6 +16,10 @@ jobs:
|
|||
build:
|
||||
runs-on: docker
|
||||
|
||||
container:
|
||||
image:
|
||||
git.kemitix.net/kemitix/rust:v4.0.1
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
toolchain:
|
||||
|
@ -26,39 +30,36 @@ jobs:
|
|||
- name: Checkout
|
||||
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: Check TODOs (Origin)
|
||||
uses: https://git.kemitix.net/kemitix/forgejo-todo-checker@v1.2.0
|
||||
uses: https://git.kemitix.net/kemitix/forgejo-todo-checker@v1.3.0
|
||||
|
||||
- name: Check TODOs (Mirror)
|
||||
uses: kemitix/todo-checker@v1.1.0
|
||||
|
||||
- name: Machete
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
||||
with:
|
||||
args: ${{ matrix.toolchain.name }} cargo machete
|
||||
run: cargo +${{ matrix.toolchain.name }} machete
|
||||
|
||||
- name: Format
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
||||
with:
|
||||
args: ${{ matrix.toolchain.name }} cargo fmt --all -- --check
|
||||
run: cargo +${{ matrix.toolchain.name }} fmt --all --check
|
||||
|
||||
- name: Clippy
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
||||
with:
|
||||
args: ${{ matrix.toolchain.name }} cargo hack --feature-powerset clippy
|
||||
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset clippy
|
||||
|
||||
- name: Build
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
||||
with:
|
||||
args: ${{ matrix.toolchain.name }} cargo hack --feature-powerset build
|
||||
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset build
|
||||
|
||||
- name: Test
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
||||
with:
|
||||
args: ${{ matrix.toolchain.name }} cargo hack --feature-powerset test
|
||||
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset test
|
||||
|
||||
- name: Mutations
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
||||
with:
|
||||
args: ${{ matrix.toolchain.name }} cargo mutants -vV --in-place
|
||||
run: cargo +${{ matrix.toolchain.name }} mutants -vV --in-place
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ clap = {version = "4.5", features = ["derive"]}
|
|||
color-eyre = "0.6"
|
||||
file-format = { version = "0.26", features = ["reader-txt"] }
|
||||
ignore = "0.4"
|
||||
kxio = "5.0"
|
||||
kxio = "5.1"
|
||||
regex = "1.10"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM docker.io/rust:1.83.0-bookworm
|
||||
FROM docker.io/rust:1.84.0-bookworm
|
||||
|
||||
WORKDIR /app
|
||||
COPY Cargo.toml ./
|
||||
|
|
6
justfile
6
justfile
|
@ -10,6 +10,12 @@ build:
|
|||
# cargo test --example get
|
||||
cargo mutants --jobs 4
|
||||
|
||||
test-in-docker:
|
||||
docker run --rm -v $PWD:/app/ git.kemitix.net/kemitix/rust:latest cargo test
|
||||
|
||||
shell-in-docker:
|
||||
docker run --rm -it -v $PWD:/app/ git.kemitix.net/kemitix/rust:latest bash
|
||||
|
||||
self-test:
|
||||
just test $PWD forgejo-todo-checker
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue