Compare commits
No commits in common. "main" and "v0.1.0" have entirely different histories.
7 changed files with 351 additions and 423 deletions
|
@ -1,67 +0,0 @@
|
||||||
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
|
|
||||||
|
|
|
@ -1,52 +0,0 @@
|
||||||
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
|
|
10
.woodpecker.yml
Normal file
10
.woodpecker.yml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
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
|
615
Cargo.lock
generated
615
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
14
Cargo.toml
14
Cargo.toml
|
@ -7,16 +7,12 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
atom_syndication = "0.12"
|
atom_syndication = "0.12"
|
||||||
reqwest = { version = "0.12", default-features = false, features = [
|
reqwest = { version = "0.11", features = ["json", "blocking"] }
|
||||||
"blocking",
|
scraper = "0.18"
|
||||||
"json",
|
clap = {version = "4.3", features = ["derive"]}
|
||||||
"rustls-tls",
|
bytes = "1.4"
|
||||||
] }
|
|
||||||
scraper = "0.22"
|
|
||||||
clap = { version = "4.5", features = ["derive"] }
|
|
||||||
bytes = "1.6"
|
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tempfile = "3.10"
|
tempfile = "3.9"
|
||||||
pretty_assertions = "1.4"
|
pretty_assertions = "1.4"
|
||||||
|
|
6
justfile
6
justfile
|
@ -2,12 +2,6 @@ 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
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
||||||
"extends": ["config:recommended"],
|
|
||||||
"packageRules": [
|
|
||||||
{
|
|
||||||
"matchManagers": ["cargo"],
|
|
||||||
"rangeStrategy": "replace"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue