From 7ed948c16aaf0974135f9254f620822abdfd1e41 Mon Sep 17 00:00:00 2001 From: Tony Atkins Date: Mon, 29 Nov 2021 13:22:52 +0100 Subject: [PATCH 1/2] 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 From af112b8c71448f5fc1117a816530157e2cecee2d Mon Sep 17 00:00:00 2001 From: Tony Atkins Date: Mon, 29 Nov 2021 13:40:50 +0100 Subject: [PATCH 2/2] GH-3: Updated to use fluid-lint-all in CI. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 66ff4ab..11062f7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,4 +33,4 @@ jobs: run: npm test - name: Lint Code - run: $(npm bin)/grunt lint + run: npm run lint