From ed0c9136ada4d870443f80db53113e4230e84bd0 Mon Sep 17 00:00:00 2001 From: Tony Atkins Date: Tue, 7 Jul 2020 11:25:55 +0200 Subject: [PATCH] Added CI configuration to master. --- .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..d573bda --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.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: Lint Code + run: $(npm bin)/grunt lint + + - name: Node Tests + run: npm test