Skip to content

Commit

Permalink
ci: switched from travis to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Dec 15, 2020
1 parent 405ae80 commit 086c13d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 14 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Node.js CI
'on':
push:
branches:
- master
- 'dependabot/**'
pull_request:
types:
- opened
- synchronize
env:
FORCE_COLOR: 1
NPM_CONFIG_COLOR: always
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Read .nvmrc
run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)'
id: nvm
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- uses: bahmutov/npm-install@v1
- run: npm test
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Primary website for the dsmJS user-group, built with [Gatsby](https://www.gatsby

<!--status-badges start -->

[![Build Status](https://img.shields.io/travis/com/dsmjs/site.svg?style=flat&branch=master)](https://travis-ci.com/dsmjs/site)
[![Node CI Workflow Status][github-actions-ci-badge]][github-actions-ci-link]

<!--status-badges end -->

Expand Down Expand Up @@ -44,3 +44,7 @@ you make will automatically hot-reload in the browser.
[dependabot-link]: https://dependabot.com/

[dependabot-badge]: https://badgen.net/dependabot/dsmjs/site/?icon=dependabot

[github-actions-ci-link]: https://github.com/dsmjs/site/actions?query=workflow%3A%22Node.js+CI%22+branch%3Amaster

[github-actions-ci-badge]: https://github.com/dsmjs/site/workflows/Node.js%20CI/badge.svg

0 comments on commit 086c13d

Please sign in to comment.