Skip to content

Commit

Permalink
Merge pull request #27 from edx/gbabey/travis-to-github-actions
Browse files Browse the repository at this point in the history
fix: Move travis ci & semantic release steps to github actions
  • Loading branch information
georgebabey committed Nov 19, 2020
2 parents 726bd89 + 485d325 commit ec22ab4
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 16 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: node_js CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Nodejs
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm run test
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
run: npm run semantic-release
- name: Coveralls
run: npm run coveralls
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

0 comments on commit ec22ab4

Please sign in to comment.