Skip to content

Commit

Permalink
Merge pull request #12 from pelias/actions
Browse files Browse the repository at this point in the history
add github actions workflow to replace travis
  • Loading branch information
missinglink authored Jan 14, 2021
2 parents 590c45b + ee76051 commit 28a220b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 20 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Continuous Integration
on: push
jobs:
unit-tests:
runs-on: '${{ matrix.os }}'
strategy:
matrix:
os:
- ubuntu-20.04
- macos-10.15
node-version:
- 10.x
- 12.x
steps:
- uses: actions/checkout@v2
- name: 'Install node.js ${{ matrix.node-version }}'
uses: actions/setup-node@v2-beta
with:
node-version: '${{ matrix.node-version }}'
- name: Run unit tests
run: |
npm install
npm run travis
npm-publish:
needs: unit-tests
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
- name: Install node.js 12.x
uses: actions/setup-node@v2-beta
with:
node-version: 12.x
- name: Run semantic-release
env:
GH_TOKEN: ${{ secrets.GH_SEMANTIC_RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: >
curl
"https://raw.githubusercontent.com/pelias/ci-tools/master/semantic-release.sh"
| bash -
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

0 comments on commit 28a220b

Please sign in to comment.