From 42d45f5c4536b3cd37cf49c400d32dc24c48593a Mon Sep 17 00:00:00 2001 From: Elizabeth Haworth <169063147+elizabethhaworth@users.noreply.github.com> Date: Sat, 12 Oct 2024 17:23:36 -0400 Subject: [PATCH] Create npm-test.yml --- .github/workflows/npm-test.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/npm-test.yml diff --git a/.github/workflows/npm-test.yml b/.github/workflows/npm-test.yml new file mode 100644 index 0000000..a349b36 --- /dev/null +++ b/.github/workflows/npm-test.yml @@ -0,0 +1,17 @@ +name: npm test +on: [push] +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node_version: [18.x] + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run build --if-present + - run: npm test