Skip to content

Commit

Permalink
chore: update github workflow for build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
moimikey committed Oct 25, 2023
1 parent 8e4d9a8 commit 179908f
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@

name: Node.js CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -20,11 +15,12 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm run build --if-present
- run: npm test:ci
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm install
- run: npm run build --if-present
- run: npm test:ci --if-present

0 comments on commit 179908f

Please sign in to comment.