From e7a069761c050d41c5748d88f428d83a1863733a 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 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..c6c5482 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +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: Install Dependencies + run: npm install + + - name: Run Tests + run: npm test + + - name: Build + run: npm run build