-
-
Notifications
You must be signed in to change notification settings - Fork 43
39 lines (36 loc) · 878 Bytes
/
test-pr.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
name: integration test
on:
pull_request:
jobs:
test:
name: ${{ matrix.example }}
strategy:
fail-fast: false
matrix:
example:
[
"examples/recipes-with-photos",
"examples/recipes-with-multi-type",
"examples/markdown-docs",
"examples/testing-options",
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: "14"
npm-version: "7"
- name: install in root
run: npm ci
- name: install in example
run: npm ci
working-directory: ${{ matrix.example }}
- run: npm run build
working-directory: ${{ matrix.example }}
report:
name: examples-passed
needs: [test]
runs-on: ubuntu-latest
steps:
- run: echo "passed!"