Skip to content

Commit

Permalink
ci: remove v18 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bugs5382 committed Feb 4, 2024
2 parents 3aa061f + 94b88eb commit 89ea4c2
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .github/pr-title-checker-config.json
@@ -0,0 +1,15 @@
{
"LABEL": {
"name": "title needs formatting",
"color": "EEEEEE"
},
"CHECKS": {
"prefixes": ["[Bot] docs: "],
"regexp": "^(feat|fix|docs|test|ci|chore)!?(\\(.*\\))?!?:.*"
},
"MESSAGES": {
"success": "PR title is valid",
"failure": "PR title is invalid",
"notice": "PR Title needs to pass regex '^(feat|fix|docs|test|ci|chore)!?(\\(.*\\))?!?:.*"
}
}
10 changes: 6 additions & 4 deletions .github/workflows/ci.yaml
Expand Up @@ -13,19 +13,21 @@ jobs:
id-token: write
strategy:
matrix:
node-version: [ 18.x, 20.x, 'lts/*' ]
node-version: [ 20.x, 'lts/*' ]
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install --ignore-scripts
- name: Run Unit Tests
run: npm run test:ci
run: npm run test
- name: Run Unit Tests
run: npm run test
Release:
runs-on: ubuntu-latest
needs: [ 'Test' ]
Expand All @@ -39,7 +41,7 @@ jobs:
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: NPM Install
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/pr-title-check.yml
@@ -0,0 +1,29 @@
name: "Lint PR"

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

# IMPORTANT: No checkout actions, scripts, or builds should be added to this workflow. Permissions should always be used
# with extreme caution. https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
permissions: {}

# PR updates can happen in quick succession, leading to this
# workflow being trigger a number of times. This limits it
# to one run per PR.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}


jobs:
validate:
permissions:
contents: read
pull-requests: read
name: Validate PR Title
runs-on: ubuntu-latest
steps:
- uses: thehanimo/pr-title-checker@0cf5902181e78341bb97bb06646396e5bd354b3f # v1.4.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
configuration_path: ".github/pr-title-checker-config.json"

0 comments on commit 89ea4c2

Please sign in to comment.