From 7ed948c16aaf0974135f9254f620822abdfd1e41 Mon Sep 17 00:00:00 2001 From: Tony Atkins Date: Mon, 29 Nov 2021 13:22:52 +0100 Subject: [PATCH] GH-3: Added initial CI config. --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..66ff4ab --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x] + + env: + HEADLESS: true + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install Node.js dependencies + run: npm install + + - name: Node Tests + run: npm test + + - name: Lint Code + run: $(npm bin)/grunt lint