Skip to content

Commit

Permalink
ci: add typos ci
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun committed May 15, 2024
1 parent f294196 commit fd4b2b0
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 36 deletions.
10 changes: 0 additions & 10 deletions .github/pr-title-checker-config.json

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Linters

on:
push:
branches:
- main
pull_request:

jobs:
linter:
name: Run Linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Markdown lint
uses: nosborn/github-action-markdown-cli@v3.2.0
with:
files: "./**/*.md"
config_file: .markdownlint.yaml
- name: Check typos
uses: crate-ci/typos@master
18 changes: 0 additions & 18 deletions .github/workflows/mdlint.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8.6.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "PR Title Checker"
name: Semantic Pull Request

on:
pull_request_target:
types:
Expand All @@ -10,11 +11,10 @@ on:

jobs:
check:
name: Check pull request title
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: thehanimo/pr-title-checker@v1.3.4
with:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pass_on_octokit_error: false
configuration_path: ".github/pr-title-checker-config.json"

0 comments on commit fd4b2b0

Please sign in to comment.