Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: Use GitHub Actions for CI/CD #255

Merged
merged 3 commits into from
Oct 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: Chai HTTP

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

jobs:
build:
name: Test on node ${{ matrix.node_version }}
runs-on: ubuntu-latest
strategy:
matrix:
node_version:
- 8 # to be removed 2020-01
- 10 # to be removed 2021-01
- x.x.x # safety net; don't remove
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- run: npm i -g npm@6 && npm ci
austince marked this conversation as resolved.
Show resolved Hide resolved
- run: npm test
- uses: coverallsapp/github-action@v1.0.1
with:
github-token: ${{ secrets.github_token }}


publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm run release
if: github.event == 'push'
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
keithamus marked this conversation as resolved.
Show resolved Hide resolved
GITHUB_TOKEN: ${{secrets.github_token}}
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.