Skip to content

Commit

Permalink
Merge pull request #288 from kokes/github_actions
Browse files Browse the repository at this point in the history
Automatic testing via GitHub Actions
  • Loading branch information
willingc authored May 12, 2020
2 parents 9a225eb + 07404c7 commit d1d63d3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/yarn-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Node.js testing

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn test

build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn build:all
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ COMMUTER_BUCKET=sweet-notebooks commuter

## Tests

1. `yarn test`
There are three ways you can run tests:

- If you have your environment set up, you can run tests locally via `yarn test`.
- This repository is also set up with [GitHub Actions](https://github.com/features/actions), a builtin CI system, which will automatically trigger test builds for multiple Node versions upon every push into this repository. You can then check out the results in the [Actions tab](https://github.com/nteract/commuter/actions).
- These GitHub Actions can be triggered locally using [act](https://github.com/nektos/act), this way you don't have to have your JavaScript environment set up and you don't have to commit and push in order to run the tests remotely through GitHub.

## Deployment

Expand Down

0 comments on commit d1d63d3

Please sign in to comment.