Skip to content

Commit ffdfca6

Browse files
authored
Include Jest tests in GitHub Actions (#109)
1 parent 4bca768 commit ffdfca6

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/validate.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,26 @@ jobs:
4646
- name: Lint
4747
run: yarn lint --max-warnings 0
4848

49+
test:
50+
name: Test
51+
needs: prepare-yarn-cache
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: actions/checkout@v2
55+
- uses: actions/setup-node@v2
56+
with:
57+
node-version: "*"
58+
- uses: actions/cache@v2
59+
with:
60+
path: |
61+
node_modules
62+
*/*/node_modules
63+
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
64+
- name: Install
65+
run: yarn install
66+
- name: Test
67+
run: yarn test
68+
4969
cypress:
5070
name: Cypress
5171
needs: prepare-yarn-cache

0 commit comments

Comments
 (0)