-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (37 loc) · 1.07 KB
/
build.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: Build project
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20.x'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache
- name: Install playwright for static server
run: yarn workspace @allurereport/static-server playwright install chromium
- name: Install playwright for e2e
run: yarn workspace @allurereport/e2e playwright install chromium
- name: Build project
run: yarn build
- name: Test Project
run: yarn test
- name: Lint Project
run: yarn eslint
- name: Generate report
run: yarn report
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out/allure-report/awesome
publish_branch: gh-pages