Compare commits
21 commits
Author | SHA1 | Date | |
---|---|---|---|
23245aaea1 | |||
|
4f7b5d4590 | ||
|
955a170533 | ||
ea5a1070c6 | |||
|
76116494ba | ||
|
1013271dda | ||
|
249b94382e | ||
f453608cdc | |||
6ab03d13e4 | |||
3ba5230e67 | |||
4021c68d1f | |||
6c4a51d6b1 | |||
58648c065e | |||
afb7ad7ae6 | |||
79db3b6816 | |||
3f6293bbb3 | |||
4438c31c95 | |||
309130a02a | |||
8abd9f6f4b | |||
da5057f608 | |||
8f47820b8e |
7 changed files with 420 additions and 348 deletions
67
.forgejo/workflows/push-main.yml
Normal file
67
.forgejo/workflows/push-main.yml
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
name: Release Please
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
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
|
||||||
|
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
|
||||||
|
run: release-plz release --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }}
|
||||||
|
env:
|
||||||
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||||
|
|
||||||
|
docker:
|
||||||
|
name: Docker image
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image:
|
||||||
|
ghcr.io/catthehacker/ubuntu:act-22.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
docker build . -t git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest
|
||||||
|
docker tag \
|
||||||
|
git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest \
|
||||||
|
git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:${{ env.GITHUB_REF_NAME }}
|
||||||
|
|
||||||
|
- name: Login
|
||||||
|
run: docker login git.kemitix.net --username kemitix --password ${{ secrets.FORGEJO_TOKEN_WRITE_PACKAGE }}
|
||||||
|
|
||||||
|
- name: Publish
|
||||||
|
run: |
|
||||||
|
docker push git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:${{ env.GITHUB_REF_NAME }}
|
||||||
|
docker push git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest
|
||||||
|
|
52
.forgejo/workflows/push-next.yml
Normal file
52
.forgejo/workflows/push-next.yml
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
name: Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- next
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
|
||||||
|
container:
|
||||||
|
image:
|
||||||
|
git.kemitix.net/kemitix/rust:v4.0.1
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
toolchain:
|
||||||
|
- name: stable
|
||||||
|
- name: nightly
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Check TODOs
|
||||||
|
uses: https://git.kemitix.net/kemitix/forgejo-todo-checker@v1.3.0
|
||||||
|
|
||||||
|
- name: Machete
|
||||||
|
run: cargo +${{ matrix.toolchain.name }} machete
|
||||||
|
|
||||||
|
- name: Format
|
||||||
|
run: cargo +${{ matrix.toolchain.name }} fmt --all --check
|
||||||
|
|
||||||
|
- name: Clippy
|
||||||
|
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset clippy
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset build
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset test
|
||||||
|
|
||||||
|
# - name: Mutations
|
||||||
|
# run: cargo +${{ matrix.toolchain.name }} mutants -vV --in-place
|
|
@ -1,10 +0,0 @@
|
||||||
steps:
|
|
||||||
build:
|
|
||||||
image: rust:latest
|
|
||||||
pull: true
|
|
||||||
commands:
|
|
||||||
- rustup component add rustfmt clippy
|
|
||||||
- cargo --version
|
|
||||||
- cargo fmt --check
|
|
||||||
- cargo clippy --fix -- -Dwarnings -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used
|
|
||||||
- cargo test
|
|
609
Cargo.lock
generated
609
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
14
Cargo.toml
14
Cargo.toml
|
@ -7,12 +7,16 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
atom_syndication = "0.12"
|
atom_syndication = "0.12"
|
||||||
reqwest = { version = "0.11", features = ["json", "blocking"] }
|
reqwest = { version = "0.12", default-features = false, features = [
|
||||||
scraper = "0.18"
|
"blocking",
|
||||||
clap = {version = "4.3", features = ["derive"]}
|
"json",
|
||||||
bytes = "1.4"
|
"rustls-tls",
|
||||||
|
] }
|
||||||
|
scraper = "0.22"
|
||||||
|
clap = { version = "4.5", features = ["derive"] }
|
||||||
|
bytes = "1.6"
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tempfile = "3.9"
|
tempfile = "3.10"
|
||||||
pretty_assertions = "1.4"
|
pretty_assertions = "1.4"
|
||||||
|
|
6
justfile
6
justfile
|
@ -2,6 +2,12 @@ coverage-init:
|
||||||
cargo install grcov
|
cargo install grcov
|
||||||
rustup component add llvm-tools
|
rustup component add llvm-tools
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
10
renovate.json
Normal file
10
renovate.json
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": ["config:recommended"],
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"matchManagers": ["cargo"],
|
||||||
|
"rangeStrategy": "replace"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue