Skip to content

Commit 233c8a5

Browse files
authored
Merge pull request #475 from strongloop/gh-action
ci: switch from Travis to Github Actions
2 parents 58cf6cb + 52adec7 commit 233c8a5

File tree

2 files changed

+32
-18
lines changed

2 files changed

+32
-18
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
15+
node-version: [10, 12, 14, 15]
16+
services:
17+
postgres:
18+
image: postgres:latest
19+
env:
20+
POSTGRES_HOST_AUTH_METHOD: trust
21+
ports:
22+
- 5432:5432
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v2
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
- run: npm install
30+
- run: npm test
31+
env:
32+
PGUSER: postgres

.travis.yml

-18
This file was deleted.

0 commit comments

Comments
 (0)