Skip to content

Commit 93d1f48

Browse files
authored
chore(ci): Use github actions to run CI (#583)
* chore(ci): Use github actions to run CI * chore(ci): Cache yarn dependencies on CI * chore(ci): Remove Travis CI build
1 parent 4974512 commit 93d1f48

File tree

2 files changed

+37
-32
lines changed

2 files changed

+37
-32
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Continuous Integration
2+
3+
on: pull_request
4+
5+
jobs:
6+
unit-tests:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2-beta
11+
with:
12+
node-version: '14'
13+
- name: Get yarn cache directory path
14+
id: yarn-cache-dir-path
15+
run: echo "::set-output name=dir::$(yarn cache dir)"
16+
- uses: actions/cache@v2
17+
id: yarn-cache
18+
with:
19+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
20+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
21+
restore-keys: |
22+
${{ runner.os }}-yarn-
23+
- run: yarn install --frozen-lockfile
24+
- run: yarn run test
25+
- run: yarn run lint
26+
- run: yarn run flow
27+
- run: yarn run smoke cjs 15.6.2
28+
- run: yarn run smoke esm 15.6.2
29+
- run: yarn run smoke cjs 16.7.0
30+
- run: yarn run smoke esm 16.7.0
31+
- run: yarn run smoke cjs 17.0.1
32+
- run: yarn run smoke esm 17.0.1
33+
- run: yarn run smoke cjs latest
34+
- run: yarn run smoke esm latest
35+
- run: yarn run smoke cjs next
36+
- run: yarn run smoke esm next
37+

.travis.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)