Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://json.schemastore.org/commitlintrc.json",
"extends": ["@commitlint/config-conventional"]
}
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ permissions:
contents: read

jobs:
commits:
name: Commits
uses: RustForWeb/.github/.github/workflows/commits.yml@b12847e2aa8dede8174ffff5f1ecf932699aeac8 # v1.0.0

rust:
name: Rust
uses: RustForWeb/.github/.github/workflows/rust.yml@373c25f8fd29e10c40f1343f13312f8be3514af0
uses: RustForWeb/.github/.github/workflows/rust.yml@b12847e2aa8dede8174ffff5f1ecf932699aeac8 # v1.0.0
with:
target: wasm32-unknown-unknown
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ permissions:
jobs:
publish:
name: Publish
uses: RustForWeb/.github/.github/workflows/publish.yml@373c25f8fd29e10c40f1343f13312f8be3514af0
uses: RustForWeb/.github/.github/workflows/publish.yml@b12847e2aa8dede8174ffff5f1ecf932699aeac8 # v1.0.0
with:
enable-rust: true
enable-typescript: false
13 changes: 13 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Pull Request

on:
pull_request:
types: [opened, synchronize, reopened, edited]

permissions:
contents: read

jobs:
pull-request:
name: Pull Request
uses: RustForWeb/.github/.github/workflows/pull-request.yml@b12847e2aa8dede8174ffff5f1ecf932699aeac8 # v1.0.0
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ permissions:
jobs:
release:
name: Release
uses: RustForWeb/.github/.github/workflows/release.yml@373c25f8fd29e10c40f1343f13312f8be3514af0
uses: RustForWeb/.github/.github/workflows/release.yml@b12847e2aa8dede8174ffff5f1ecf932699aeac8 # v1.0.0
with:
bump: ${{ inputs.bump }}
bump-rust: true
bump-typescript: false
extract-version: 'rust'
secrets:
app-client-id: ${{ secrets.APP_ID }}
app-private-key: ${{ secrets.APP_PRIVATE_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ concurrency:
jobs:
book:
name: Book
uses: RustForWeb/.github/.github/workflows/book.yml@373c25f8fd29e10c40f1343f13312f8be3514af0
uses: RustForWeb/.github/.github/workflows/book.yml@b12847e2aa8dede8174ffff5f1ecf932699aeac8 # v1.0.0
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
default_install_hook_types:
- pre-commit
- commit-msg
default_stages:
- pre-commit

repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
Expand All @@ -13,6 +19,7 @@ repos:
hooks:
- id: fmt
- id: clippy
args: ['--all-targets', '--all-features', '--', '-D', 'warnings']

- repo: https://github.com/EmbarkStudios/cargo-deny
rev: 0.19.7
Expand All @@ -29,6 +36,7 @@ repos:
name: cargo-machete
language: rust
entry: cargo machete
args: ['--with-metadata']
types: [file, toml]
files: Cargo\.(toml|lock)
pass_filenames: false
Expand All @@ -38,3 +46,13 @@ repos:
hooks:
- id: cargo-sort
args: ['--workspace']

- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.25.0
hooks:
- id: commitlint
stages: [commit-msg]
language: node
additional_dependencies:
- '@commitlint/cli@^21.0.0'
- '@commitlint/config-conventional@^21.0.0'
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"bracketSpacing": false,
"printWidth": 120,
"singleQuote": true,
Expand Down
Loading