Skip to content

Commit 333c278

Browse files
Created github actions config
1 parent cb34377 commit 333c278

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: test
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node: [10, 12, 14]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v2-beta
14+
with:
15+
node-version: ${{ matrix.node }}
16+
17+
- name: Get yarn cache directory path
18+
id: yarn-cache-path
19+
run: echo "::set-output name=dir::$(yarn cache dir)"
20+
21+
- uses: actions/cache@master
22+
id: yarn-cache
23+
with:
24+
path: ${{ steps.yarn-cache-path.outputs.dir }}
25+
key: yarn-${{ hashFiles('**/yarn.lock') }}
26+
restore-keys: yarn-
27+
28+
- name: Install dependencies
29+
run: yarn install
30+
31+
- name: Lint and Test with ${{ matrix.node }}
32+
env:
33+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
34+
run: |
35+
yarn lint
36+
yarn test
37+
yarn docs
38+
yarn validate-translations

0 commit comments

Comments
 (0)