Skip to content

Commit

Permalink
feat: update node, deps, testing (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef authored Dec 11, 2024
1 parent e73526d commit 774e6b8
Show file tree
Hide file tree
Showing 19 changed files with 32,004 additions and 11,931 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build/
coverage/
dist/
node_modules/
node_modules/
18 changes: 5 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "16"
- name: Setup build cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
node-version-file: package.json
- name: Install dependencies
run: npm ci
- name: Compile TypeScript
run: npm run compile
- name: Run linter
run: npm run lint
- name: Run build
run: npm run build
5 changes: 4 additions & 1 deletion .github/workflows/pr-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ on:
- opened
- edited
- reopened
- synchronize
jobs:
lint-pr:
name: Lint pull request title
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Lint pull request title
uses: ./
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup release please
uses: google-github-actions/release-please-action@v3
uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
- opened
- edited
- reopened
- synchronize
jobs:
lint-pr:
name: Lint pull request title
Expand Down
4 changes: 2 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Convetional Commits Pull Request
name: Conventional Commits Pull Request
description: Lints a pull request title based on Conventional Commits
branding:
icon: align-left
Expand All @@ -12,5 +12,5 @@ inputs:
required: true
description: Access token to the repository.
runs:
using: node16
using: node20
main: dist/index.js
Loading

0 comments on commit 774e6b8

Please sign in to comment.