diff --git a/.github/pr-title-checker-config.json b/.github/pr-title-checker-config.json deleted file mode 100644 index f270dc671..000000000 --- a/.github/pr-title-checker-config.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "LABEL": { - "name": "Invalid PR Title", - "color": "B60205" - }, - "CHECKS": { - "regexp": "^(feat|fix|test|refactor|chore|style|docs|perf|build|ci|revert)(\\(.*\\))?:.*", - "ignoreLabels" : ["ignore-title"] - } -} diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 000000000..33b96d80c --- /dev/null +++ b/.github/workflows/linter.yml @@ -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 diff --git a/.github/workflows/mdlint.yml b/.github/workflows/mdlint.yml deleted file mode 100644 index 808267f38..000000000 --- a/.github/workflows/mdlint.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Markdown Lint - -on: - push: - branches: - - main - pull_request: - -jobs: - build: - name: Markdown Lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: nosborn/github-action-markdown-cli@v3.2.0 - with: - files: "./**/*.md" - config_file: .markdownlint.yaml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node-build.yml similarity index 88% rename from .github/workflows/node.js.yml rename to .github/workflows/node-build.yml index a77efaae6..f6eb449a2 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node-build.yml @@ -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' diff --git a/.github/workflows/pr-title-checker.yml b/.github/workflows/semantic-pull-request.yml similarity index 56% rename from .github/workflows/pr-title-checker.yml rename to .github/workflows/semantic-pull-request.yml index d683c847f..6c2a351e5 100644 --- a/.github/workflows/pr-title-checker.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -1,4 +1,5 @@ -name: "PR Title Checker" +name: Semantic Pull Request + on: pull_request_target: types: @@ -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"