From c7078af841ebe8d5df8b30b5d9ef7d31b303616c Mon Sep 17 00:00:00 2001 From: Lee Danilek Date: Tue, 29 Oct 2024 11:17:30 -0400 Subject: [PATCH 1/2] run tests in github action --- .github/workflows/node.js.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..21b066f --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,22 @@ +name: Run tests +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + cache-dependency-path: | + example/package-lock.json + package-lock.json + node-version: '18.x' + cache: 'npm' + - run: npm i + - run: npm ci + - run: npm test From 2f68bc62bbdd25cee6ab4d143a87a06a69663759 Mon Sep 17 00:00:00 2001 From: Lee Danilek Date: Tue, 29 Oct 2024 11:21:08 -0400 Subject: [PATCH 2/2] stop depending on gitignored files --- .github/workflows/node.js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 21b066f..eb8f168 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -13,8 +13,8 @@ jobs: uses: actions/setup-node@v4 with: cache-dependency-path: | - example/package-lock.json - package-lock.json + example/package.json + package.json node-version: '18.x' cache: 'npm' - run: npm i