-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (41 loc) · 1.22 KB
/
test-smoke.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
name: Smoke test
on:
push:
branches:
- main
env:
CI: true
jobs:
bootstrap:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Setup Git
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Bootstrap application
run: ./node_modules/.bin/tramvai new smoke-bootstrap --type=app --template=multirepo --packageManager=npm --testingFramework=jest
- name: Install Playwright
working-directory: smoke-bootstrap
run: yarn playwright install --with-deps
- name: Build application
working-directory: smoke-bootstrap
run: yarn build
- name: Test:unit application
working-directory: smoke-bootstrap
run: yarn test
- name: Test:integration application
working-directory: smoke-bootstrap
run: yarn test:integration