Skip to content

Commit a04e495

Browse files
authored
Merge pull request #32 from reasonml-community/ci
GitHub actions
2 parents d7df6b0 + 39205d0 commit a04e495

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
name: Build on ${{ matrix.os }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
node-version: [12.x]
15+
os: [ubuntu-latest, macOS-latest, windows-latest]
16+
17+
steps:
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
25+
- name: Get yarn cache directory path
26+
id: yarn-cache-dir-path
27+
run: echo "::set-output name=dir::$(yarn cache dir)"
28+
- name: Restore yarn cache
29+
id: yarn-cache
30+
uses: actions/cache@v1
31+
with:
32+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
33+
key: ${{ matrix.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
34+
restore-keys: |
35+
${{ matrix.os }}-yarn-
36+
37+
- name: Yarn
38+
run: yarn
39+
40+
- name: Reason build
41+
run: yarn build
42+
43+
- name: Parcel build
44+
run: yarn parcel build examples/index.html

0 commit comments

Comments
 (0)