Skip to content

Commit

Permalink
Add test and build ci workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewjordan committed Apr 8, 2024
1 parent 17872a8 commit 2f7e681
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test and Build

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

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: "16.x"

- name: Clear and Reinstall Dependencies
run: |
rm -rf node_modules package-lock.json
npm install
- name: Run Tests
run: npm test

- name: Build
run: npm run build

0 comments on commit 2f7e681

Please sign in to comment.