Skip to content

Commit

Permalink
feat: add new actions
Browse files Browse the repository at this point in the history
  • Loading branch information
9renpoto committed Jul 25, 2023
1 parent adeb2c4 commit 0a8b350
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 11 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: actionlint

on:
pull_request:
paths:
- '.github/actions/**'
- '.github/workflows/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: reviewdog/action-actionlint@v1
with:
reporter: github-pr-review
fail_on_error: true
12 changes: 12 additions & 0 deletions .github/workflows/cspell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'Check spelling'
on:
pull_request:

jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: streetsidesoftware/cspell-action@v2
with:
incremental_files_only: false
37 changes: 37 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Rust

on:
push

env:
CARGO_TERM_COLOR: always

jobs:
test:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: llvm-tools-preview
- uses: Swatinem/rust-cache@v2
- run: cargo test --workspace --all-features --all-targets
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: rustup toolchain install
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Check
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
- name: rustfmt
run: cargo fmt --all --check
7 changes: 0 additions & 7 deletions .secretlintrc.json

This file was deleted.

1 change: 0 additions & 1 deletion .textlintrc.js

This file was deleted.

4 changes: 1 addition & 3 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"clean": {},
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**"]
},
"lint": {}
}
}
}

0 comments on commit 0a8b350

Please sign in to comment.