Skip to content

Commit

Permalink
[TEST] update github actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
dmh committed Jul 5, 2024
1 parent 52e4565 commit 866da35
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/git-commit.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
name: Check Commit Message

on:
pull_request:
types: [opened, edited, reopened, synchronize, ready_for_review, review_requested]

jobs:

check-commit-message:
name: Check Commit Message
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Check Commit Type
uses: gsactions/commit-message-checker@v1
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Publish NPM Package

on:
release:
types: [published]
Expand All @@ -20,3 +19,8 @@ jobs:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

- name: PKG versions
run: |
node -v
npm -v
13 changes: 3 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Run tests

on:
push:
branches:
Expand All @@ -8,20 +7,14 @@ on:
types: [opened, reopened, synchronize]

jobs:

build:
name: Node
test:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
node: [18, 20]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js v${{ matrix.node }}
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm test
Expand Down

0 comments on commit 866da35

Please sign in to comment.