From 39d748736bbf776f3b161307e7a811d310c3f631 Mon Sep 17 00:00:00 2001 From: m0ar Date: Wed, 14 Aug 2024 11:15:04 +0200 Subject: [PATCH] add CI test workflow --- .github/workflows/pr.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/pr.yaml diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 0000000..bf20d2d --- /dev/null +++ b/.github/workflows/pr.yaml @@ -0,0 +1,18 @@ +on: + pull_request +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + check-latest: false + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm run test