From e4feb734fab442d97bab2124c132863e65c494b9 Mon Sep 17 00:00:00 2001 From: Manuel Spigolon Date: Sun, 19 Dec 2021 08:54:26 +0100 Subject: [PATCH] chore: upgrade github-action-merge-dependabot to v3 --- .github/workflows/ci.yml | 89 ++++++++++++++++++++-------------------- 1 file changed, 45 insertions(+), 44 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5798e05..4d658ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,22 +1,23 @@ name: CI - -on: +'on': push: paths-ignore: - - 'docs/**' + - docs/** - '*.md' pull_request: paths-ignore: - - 'docs/**' + - docs/** - '*.md' - jobs: test: runs-on: ubuntu-latest strategy: matrix: - node-version: [10, 12, 14, 16] - + node-version: + - 10 + - 12 + - 14 + - 16 services: postgres: image: postgres:11-alpine @@ -25,45 +26,43 @@ jobs: POSTGRES_DB: postgres POSTGRES_PASSWORD: postgres ports: - # will assign a random free host port - - 5432:5432 - # needed because the postgres container does not provide a healthcheck - options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 - + - '5432:5432' + options: >- + --health-cmd pg_isready --health-interval 10s --health-timeout 5s + --health-retries 5 steps: - - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - - name: Install Dependencies - run: | - npm install - - - name: CI environment setup - run: | - npm i node-gyp - sudo apt-get install -yqq libpq-dev postgresql-client - chmod 600 .pgpass - PGPASSFILE=.pgpass psql -h localhost -p ${{ job.services.postgres.ports[5432] }} -d postgres -c 'CREATE TABLE users(id serial PRIMARY KEY, username VARCHAR (50) NOT NULL);' -U postgres - - - name: Check licenses - run: | - npm run license-checker --if-present + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: Install Dependencies + run: | + npm install + - name: CI environment setup + run: > + npm i node-gyp - - name: Run tests - run: | - npm run test:ci + sudo apt-get install -yqq libpq-dev postgresql-client - - name: Coveralls Parallel - uses: coverallsapp/github-action@1.1.3 - with: - github-token: ${{ secrets.github_token }} - parallel: true - flag-name: run-${{ matrix.node-version }}-${{ matrix.os }} + chmod 600 .pgpass + PGPASSFILE=.pgpass psql -h localhost -p ${{ + job.services.postgres.ports[5432] }} -d postgres -c 'CREATE TABLE + users(id serial PRIMARY KEY, username VARCHAR (50) NOT NULL);' -U + postgres + - name: Check licenses + run: | + npm run license-checker --if-present + - name: Run tests + run: | + npm run test:ci + - name: Coveralls Parallel + uses: coverallsapp/github-action@1.1.3 + with: + github-token: ${{ secrets.github_token }} + parallel: true + flag-name: run-${{ matrix.node-version }}-${{ matrix.os }} coverage: needs: test runs-on: ubuntu-latest @@ -73,11 +72,13 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} parallel-finished: true - automerge: needs: test 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 }}