From 8ee2eba68b274b95fb95400e9132bfbf3ea3a853 Mon Sep 17 00:00:00 2001 From: Chasen Le Hara Date: Fri, 16 Aug 2024 19:18:44 -0700 Subject: [PATCH] Add automated testing infrastructure Goal is to have tests run as part of PRs so we can have more confidence in our changes. --- .github/workflows/verify-build-publish.yml | 24 ++++++++++++++++++++++ .nvmrc | 1 + 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/verify-build-publish.yml create mode 100644 .nvmrc diff --git a/.github/workflows/verify-build-publish.yml b/.github/workflows/verify-build-publish.yml new file mode 100644 index 0000000..ba11bee --- /dev/null +++ b/.github/workflows/verify-build-publish.yml @@ -0,0 +1,24 @@ +name: Verify/Build/Deploy + +on: + push: + branches: [master] + pull_request: + +jobs: + job: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + + - name: Install + run: npm install + + - name: test + run: npm run test diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..209e3ef --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +20