Skip to content

Commit 601854f

Browse files
authoredOct 25, 2019
Build: Use GitHub Actions for CI/CD (#255)
* build: Use GitHub Actions for CI/CD * build: add github token to publish step Co-Authored-By: Austin Cawley-Edwards <austin.cawley@gmail.com> * build: drop travis
1 parent 50d9db4 commit 601854f

File tree

2 files changed

+46
-43
lines changed

2 files changed

+46
-43
lines changed
 

‎.github/workflows/ci.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Chai HTTP
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
name: Test on node ${{ matrix.node_version }}
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
node_version:
18+
- 8 # to be removed 2020-01
19+
- 10 # to be removed 2021-01
20+
- x.x.x # safety net; don't remove
21+
steps:
22+
- uses: actions/checkout@v1
23+
- uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node_version }}
26+
- run: npm i -g npm@6 && npm ci
27+
- run: npm test
28+
- uses: coverallsapp/github-action@v1.0.1
29+
with:
30+
github-token: ${{ secrets.github_token }}
31+
32+
33+
publish-npm:
34+
needs: build
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v1
38+
- uses: actions/setup-node@v1
39+
with:
40+
node-version: 12
41+
registry-url: https://registry.npmjs.org/
42+
- run: npm run release
43+
if: github.event == 'push'
44+
env:
45+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
46+
GITHUB_TOKEN: ${{secrets.github_token}}

‎.travis.yml

-43
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.