Skip to content

Commit

Permalink
TASK: Add test to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Jan 21, 2024
1 parent 1cbfc43 commit 41437e8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

name: Build and test

on:
workflow_dispatch:
push:
pull_request:

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org/'
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Test
run: npm run test

0 comments on commit 41437e8

Please sign in to comment.