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:
|
release-plz:
|
||||||
name: Release-plz
|
name: Release-plz
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
||||||
|
container:
|
||||||
|
image:
|
||||||
|
git.kemitix.net/kemitix/rust:v4.0.1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Run release-plz release-pr
|
- name: Run release-plz release-pr
|
||||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
run: release-plz release-pr --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }}
|
||||||
with:
|
|
||||||
args: release-plz release-pr --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }}
|
|
||||||
env:
|
env:
|
||||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Run release-plz release
|
- name: Run release-plz release
|
||||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
run: release-plz release --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }}
|
||||||
with:
|
|
||||||
args: release-plz release --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }}
|
|
||||||
env:
|
env:
|
||||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||||
|
|
|
@ -16,6 +16,10 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
||||||
|
container:
|
||||||
|
image:
|
||||||
|
git.kemitix.net/kemitix/rust:v4.0.1
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
toolchain:
|
toolchain:
|
||||||
|
@ -26,39 +30,36 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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)
|
- 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)
|
- name: Check TODOs (Mirror)
|
||||||
uses: kemitix/todo-checker@v1.1.0
|
uses: kemitix/todo-checker@v1.1.0
|
||||||
|
|
||||||
- name: Machete
|
- name: Machete
|
||||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
run: cargo +${{ matrix.toolchain.name }} machete
|
||||||
with:
|
|
||||||
args: ${{ matrix.toolchain.name }} cargo machete
|
|
||||||
|
|
||||||
- name: Format
|
- name: Format
|
||||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
run: cargo +${{ matrix.toolchain.name }} fmt --all --check
|
||||||
with:
|
|
||||||
args: ${{ matrix.toolchain.name }} cargo fmt --all -- --check
|
|
||||||
|
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset clippy
|
||||||
with:
|
|
||||||
args: ${{ matrix.toolchain.name }} cargo hack --feature-powerset clippy
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset build
|
||||||
with:
|
|
||||||
args: ${{ matrix.toolchain.name }} cargo hack --feature-powerset build
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset test
|
||||||
with:
|
|
||||||
args: ${{ matrix.toolchain.name }} cargo hack --feature-powerset test
|
|
||||||
|
|
||||||
- name: Mutations
|
- name: Mutations
|
||||||
uses: https://git.kemitix.net/kemitix/rust@v2.5.0
|
run: cargo +${{ matrix.toolchain.name }} mutants -vV --in-place
|
||||||
with:
|
|
||||||
args: ${{ matrix.toolchain.name }} cargo mutants -vV --in-place
|
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ clap = {version = "4.5", features = ["derive"]}
|
||||||
color-eyre = "0.6"
|
color-eyre = "0.6"
|
||||||
file-format = { version = "0.26", features = ["reader-txt"] }
|
file-format = { version = "0.26", features = ["reader-txt"] }
|
||||||
ignore = "0.4"
|
ignore = "0.4"
|
||||||
kxio = "5.0"
|
kxio = "5.1"
|
||||||
regex = "1.10"
|
regex = "1.10"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
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
|
WORKDIR /app
|
||||||
COPY Cargo.toml ./
|
COPY Cargo.toml ./
|
||||||
|
|
6
justfile
6
justfile
|
@ -10,6 +10,12 @@ build:
|
||||||
# cargo test --example get
|
# cargo test --example get
|
||||||
cargo mutants --jobs 4
|
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:
|
self-test:
|
||||||
just test $PWD forgejo-todo-checker
|
just test $PWD forgejo-todo-checker
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue