diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6aa1b9b..1180230 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,8 +1,17 @@ name: Default CI -on: [push, pull_request] +on: + push: + branches: + - 'master' + pull_request: + branches: + - '**' jobs: - build: + tests: runs-on: ubuntu-latest + strategy: + matrix: + node: [12, 14, 16] steps: - name: Checkout uses: actions/checkout@v2 @@ -11,7 +20,7 @@ jobs: - name: Setup Nodejs uses: actions/setup-node@v2 with: - node-version: 12 + node-version: ${{ matrix.node }} - name: Install dependencies run: npm ci - name: Validate package-lock.json changes