Skip to content

Commit

Permalink
add tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomontero committed May 2, 2024
1 parent 3522433 commit 7ed4534
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Build Package

on: [push]
on:
push:
branches: [ "master", "feature/cli-installer-v2" ] # should change once we have a stable branch
pull_request:
branches: [ "master", "feature/cli-installer-v2" ]

jobs:
build:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Tests

on: [push]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16.x]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Configure NPM Token
run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
- name: Install dependencies
run: npm install
- name: Run Tests
run: npm run test:ci

0 comments on commit 7ed4534

Please sign in to comment.