-
Notifications
You must be signed in to change notification settings - Fork 53
60 lines (58 loc) · 1.63 KB
/
integration-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Integration tests
on:
pull_request:
push:
branches:
- master
jobs:
run_integration_tests:
name: Integration tests
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "true"
- uses: actions/setup-node@v3
with:
node-version: 16
env:
CI: true
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install esy
run: npm install -g esy
- uses: esy/github-action@master
with:
cache-key: ${{ hashFiles('esy.lock/index.json') }}
working-directory: packages/rescript-relay/rescript-relay-ppx
- name: Build PPX
uses: esy/github-action@master
with:
cache-key: ${{ hashFiles('esy.lock/index.json') }}
working-directory: packages/rescript-relay/rescript-relay-ppx
- name: Install - bindings
working-directory: packages/rescript-relay
run: |
yarn install
- name: Build - compiler & Relay test files
working-directory: packages/rescript-relay
run: |
yarn build:test
- name: git status
id: git_status
run: |
echo "::set-output name=status::$( git status --porcelain )"
- name: Exit if files modified
run: |
exit 1
if: steps.git_status.outputs.status
- name: Build - bindings
working-directory: packages/rescript-relay
run: |
yarn build
- name: Integration tests
working-directory: packages/rescript-relay
run: |
yarn test:ci