Skip to content

Commit

Permalink
Add test workflow and update package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnelreposo committed Mar 19, 2024
1 parent 362ea35 commit fe1acfb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test

on:
push:
branches: [ test ]
pull_request:
branches: [ test ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [21.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm run test:ci
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"scripts": {
"build": "tsc",
"test": "jest --watchAll",
"test:ci": "jest",
"prepare": "npm run build && npm run test",
"version": "git add -A src",
"postversion": "git push && git push --tags"
Expand Down

0 comments on commit fe1acfb

Please sign in to comment.