Skip to content

Commit

Permalink
chore: upgrade github-action-merge-dependabot to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Eomm committed Dec 19, 2021
1 parent 541d02b commit e4feb73
Showing 1 changed file with 45 additions and 44 deletions.
89 changes: 45 additions & 44 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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 }}

0 comments on commit e4feb73

Please sign in to comment.