From 7202b1e47c5de677aae3116b64fad8942fd76065 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sat, 15 Jul 2023 18:18:37 -0400 Subject: [PATCH] Add GitHub actions to do some basic testing --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c9201ba --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: Build and test +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [16.x, 18.x] + directory: [common, frcal, jcal] + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm ci --include=dev + - name: Build + run: | + cd ${{ matrix.directory }} + [ "${{ matrix.directory }}" != common ] && CI=false npm run build + npm test -- --watchAll=false --ci --passWithNoTests