Skip to content

Commit

Permalink
ci: switch to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Stepan Kuzmin committed Jun 7, 2020
1 parent 8e81a32 commit 42ea609
Show file tree
Hide file tree
Showing 7 changed files with 12,191 additions and 9,188 deletions.
7 changes: 0 additions & 7 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
"node": true
},
"rules": {
"arrow-parens": [
"warn",
"as-needed",
{
"requireForBlockBody": true
}
],
"comma-dangle": ["error", "never"],
"function-paren-newline": ["error", "consistent"],
"max-len": [
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
tests:
runs-on: ubuntu-latest
container: node:10.18-jessie

services:
postgres:
image: postgres
env:
POSTGRES_DB: test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Check out repository code
uses: actions/checkout@v2

- name: Install dependencies
run: npm ci

- name: Run linter
run: npm run lint

- name: Run tests
run: npm test
env:
POSTGRES_DB: test
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
registry=https://registry.yarnpkg.com
save-exact=true
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 42ea609

Please sign in to comment.