Skip to content

Commit

Permalink
fix ci and remove travis
Browse files Browse the repository at this point in the history
  • Loading branch information
lagden committed Apr 20, 2020
1 parent 57b8367 commit bdc79a8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{md, yml,json}]
[*.{md,yml,json}]
indent_style = space

[*.{md,yml}]
Expand Down
41 changes: 21 additions & 20 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Node.js CI
on:
push:
branches: [master]

pull_request:
branches: [master]

Expand All @@ -13,31 +14,31 @@ jobs:

strategy:
matrix:
# node-version: [10.x, 12.x]
node-version: [12.x]
node-version: [10.x, 12.x]

services:
redis:
image: redis
ports:
- 6379:6379
- 6379:6379
options: --entrypoint redis-server

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm run coverage
env:
CI: true
REDIS: 127.0.0.1:${{ job.services.redis.ports[6379] }}

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: npm ci
- run: npm run build --if-present
- run: npm run coverage
env:
CI: true
REDIS: 127.0.0.1:${{ job.services.redis.ports[6379] }}

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

0 comments on commit bdc79a8

Please sign in to comment.