Skip to content

Commit 4ad317b

Browse files
ci: update workflows (#241)
1 parent edde2b3 commit 4ad317b

10 files changed

Lines changed: 1050 additions & 7 deletions

File tree

.commitlintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://json.schemastore.org/commitlintrc.json",
3+
"extends": ["@commitlint/config-conventional"]
4+
}

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ permissions:
1010
contents: read
1111

1212
jobs:
13+
commits:
14+
name: Commits
15+
uses: RustForWeb/.github/.github/workflows/commits.yml@b12847e2aa8dede8174ffff5f1ecf932699aeac8 # v1.0.0
16+
1317
rust:
1418
name: Rust
15-
uses: RustForWeb/.github/.github/workflows/rust.yml@373c25f8fd29e10c40f1343f13312f8be3514af0
19+
uses: RustForWeb/.github/.github/workflows/rust.yml@b12847e2aa8dede8174ffff5f1ecf932699aeac8 # v1.0.0
1620
with:
1721
target: wasm32-unknown-unknown

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ permissions:
1111
jobs:
1212
publish:
1313
name: Publish
14-
uses: RustForWeb/.github/.github/workflows/publish.yml@373c25f8fd29e10c40f1343f13312f8be3514af0
14+
uses: RustForWeb/.github/.github/workflows/publish.yml@b12847e2aa8dede8174ffff5f1ecf932699aeac8 # v1.0.0
15+
with:
16+
enable-rust: true
17+
enable-typescript: false

.github/workflows/pull-request.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, edited]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
pull-request:
12+
name: Pull Request
13+
uses: RustForWeb/.github/.github/workflows/pull-request.yml@b12847e2aa8dede8174ffff5f1ecf932699aeac8 # v1.0.0

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ permissions:
1818
jobs:
1919
release:
2020
name: Release
21-
uses: RustForWeb/.github/.github/workflows/release.yml@373c25f8fd29e10c40f1343f13312f8be3514af0
21+
uses: RustForWeb/.github/.github/workflows/release.yml@b12847e2aa8dede8174ffff5f1ecf932699aeac8 # v1.0.0
2222
with:
2323
bump: ${{ inputs.bump }}
24+
bump-rust: true
25+
bump-typescript: false
26+
extract-version: 'rust'
27+
secrets:
28+
app-client-id: ${{ secrets.APP_ID }}
29+
app-private-key: ${{ secrets.APP_PRIVATE_KEY }}

.github/workflows/website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ concurrency:
1818
jobs:
1919
book:
2020
name: Book
21-
uses: RustForWeb/.github/.github/workflows/book.yml@373c25f8fd29e10c40f1343f13312f8be3514af0
21+
uses: RustForWeb/.github/.github/workflows/book.yml@b12847e2aa8dede8174ffff5f1ecf932699aeac8 # v1.0.0

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
default_install_hook_types:
2+
- pre-commit
3+
- commit-msg
4+
default_stages:
5+
- pre-commit
6+
17
repos:
28
- repo: https://github.com/pre-commit/mirrors-prettier
39
rev: v3.1.0
@@ -13,6 +19,7 @@ repos:
1319
hooks:
1420
- id: fmt
1521
- id: clippy
22+
args: ['--all-targets', '--all-features', '--', '-D', 'warnings']
1623

1724
- repo: https://github.com/EmbarkStudios/cargo-deny
1825
rev: 0.19.7
@@ -29,6 +36,7 @@ repos:
2936
name: cargo-machete
3037
language: rust
3138
entry: cargo machete
39+
args: ['--with-metadata']
3240
types: [file, toml]
3341
files: Cargo\.(toml|lock)
3442
pass_filenames: false
@@ -38,3 +46,13 @@ repos:
3846
hooks:
3947
- id: cargo-sort
4048
args: ['--workspace']
49+
50+
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
51+
rev: v9.25.0
52+
hooks:
53+
- id: commitlint
54+
stages: [commit-msg]
55+
language: node
56+
additional_dependencies:
57+
- '@commitlint/cli@^21.0.0'
58+
- '@commitlint/config-conventional@^21.0.0'

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
23
"bracketSpacing": false,
34
"printWidth": 120,
45
"singleQuote": true,

0 commit comments

Comments
 (0)