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 d648bfe
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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
uses: actions/setup-node@v2
with:
node-version: "14"

- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install Dependencies
run: npm ci

- name: Run Tests
run: npm test

- name: Build
run: npm run build

0 comments on commit d648bfe

Please sign in to comment.