Skip to content

Commit 19b9f0f

Browse files
committed
Create GH Actions workflow based on previous Travis setup
1 parent ef2c984 commit 19b9f0f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master, gh-actions]
6+
pull_request:
7+
branches: [master, gh-actions]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
REACT_DIST: [16, 17]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Use Node.js 14
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: 14
23+
cache: 'npm'
24+
- run: yarn
25+
- run: yarn add react@${{ matrix.REACT_DIST }} react-dom@${{ matrix.REACT_DIST }}
26+
- run: yarn --cwd www
27+
- run: yarn test
28+
- run: npm run build
29+
- run: npm run semantic-release

0 commit comments

Comments
 (0)