From 2f7e681c461f52c46e67a4d6d5125060f668b032 Mon Sep 17 00:00:00 2001 From: Mat Jordan Date: Mon, 8 Apr 2024 13:16:58 -0400 Subject: [PATCH] Add test and build ci workflow. --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d4cd714 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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