Skip to content

Commit

Permalink
[tests] Run tests on push (pacocoursey#38)
Browse files Browse the repository at this point in the history
* 0.0.14

* Add github action for running tests
  • Loading branch information
pacocoursey committed Mar 30, 2021
1 parent 17b9d77 commit 2094b99
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test

on: push

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/setup-node@v1
with:
node-version: 14.x

- name: yarn install
run: yarn
env:
CI: true

- name: Run test
run: yarn test

0 comments on commit 2094b99

Please sign in to comment.