Skip to content

Commit 0313249

Browse files
committed
init repo
0 parents  commit 0313249

17 files changed

+4229
-0
lines changed

.github/renovate.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["github>Boshen/renovate", "helpers:pinGitHubActionDigestsToSemver"]
4+
}

.github/workflows/ci.yml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, synchronize]
7+
paths-ignore:
8+
- "**/*.md"
9+
push:
10+
branches:
11+
- main
12+
paths-ignore:
13+
- "**/*.md"
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
17+
cancel-in-progress: ${{ github.ref_name != 'main' }}
18+
19+
defaults:
20+
run:
21+
shell: bash
22+
23+
env:
24+
CARGO_INCREMENTAL: 0
25+
RUSTFLAGS: "-D warnings"
26+
27+
jobs:
28+
test:
29+
name: Test
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1
33+
- uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0
34+
with:
35+
save-cache: ${{ github.ref_name == 'main' }}
36+
- run: cargo run -p xtask
37+
- run: cargo check --all-targets --all-features
38+
- run: cargo test
39+
- run: git diff --exit-code # Must commit everything
40+
41+
lint:
42+
name: Lint
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1
46+
47+
- uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0
48+
with:
49+
components: clippy rust-docs rustfmt
50+
51+
- run: |
52+
cargo fmt --check
53+
cargo clippy --all-targets --all-features -- -D warnings
54+
RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items
55+
56+
- uses: crate-ci/typos@master
57+
with:
58+
files: .

.github/workflows/zizmor.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Zizmor
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, synchronize]
7+
paths:
8+
- ".github/workflows/**"
9+
push:
10+
branches:
11+
- main
12+
- "renovate/**"
13+
paths:
14+
- ".github/workflows/**"
15+
16+
jobs:
17+
zizmor:
18+
name: zizmor
19+
runs-on: ubuntu-latest
20+
permissions:
21+
security-events: write
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
25+
with:
26+
persist-credentials: false
27+
28+
- uses: taiki-e/install-action@ae97ff9daf1cd2e216671a047d80ff48461e30bb # v2.49.1
29+
with:
30+
tool: zizmor
31+
32+
- name: Run zizmor
33+
run: zizmor --format sarif . > results.sarif
34+
env:
35+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
37+
- name: Upload SARIF file
38+
uses: github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3
39+
with:
40+
sarif_file: results.sarif
41+
category: zizmor

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

.typos.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[files]
2+
extend-exclude = [
3+
"src/lib.rs",
4+
]

0 commit comments

Comments
 (0)