diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7fedcc6..6863ef4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,35 +1,27 @@ ---- -name: CI +name: ci on: [push, pull_request] jobs: build: runs-on: ubuntu-latest strategy: matrix: - node-version: [12.x, 14.x] + node-version: [12, 14, 16] steps: - - name: Checkout - uses: actions/checkout@v2.4.0 - - name: Use Node.js - uses: actions/setup-node@v2.5.0 + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - - name: Restore cached dependencies - uses: actions/cache@v2.1.7 - with: - path: node_modules - key: node-modules-${{ hashFiles('package.json') }} - - name: Install dependencies - run: npm install - - name: Lint - run: npm run lint - - name: Run Tests - run: npm run test:ci + - run: npm install + - run: npm run lint + - run: npm run test:ci automerge: needs: build runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: write steps: - - uses: fastify/github-action-merge-dependabot@v2.7.1 + - uses: fastify/github-action-merge-dependabot@v3 with: github-token: ${{ secrets.GITHUB_TOKEN }}