-
Notifications
You must be signed in to change notification settings - Fork 165
39 lines (39 loc) · 1.03 KB
/
test-examples.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: Test Examples
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
linting:
name: Lint all the Examples
runs-on: ubuntu-latest
steps:
- name: Checking out Repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
- name: Install Root Dependencies
run: yarn install
- name: Run Linting
run: yarn lint
test-example:
name: Test Example
runs-on: ubuntu-latest
strategy:
matrix:
dir: [basic, basic-cdn, basic-ts, basic-sass-custom-theming, basic-react-router, parcel, parcel-ts]
steps:
- name: Checking out Repository
uses: actions/checkout@v2
- name: Install Dependencies
working-directory: ${{ matrix.dir }}
run: yarn install
- name: Run Tests
env:
CI: true
working-directory: ${{ matrix.dir }}
run: yarn test
- name: Build project
working-directory: ${{ matrix.dir }}
run: yarn run build