-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (62 loc) · 1.92 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build
on:
pull_request:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# - name: Configure Pages
# id: pages
# uses: actions/configure-pages@v3
- name: Setup
uses: ./.github/actions/setup
- name: Build
run: pnpm build
- name: Run linters
run: pnpm lint
# - name: Run unit tests
# run: pnpm test:unit
# - name: Run e2e tests
# run: pnpm test:e2e
# - name: Move output of Website SSR
# run: |
# mkdir -p out
# mv apps/website-ssr/out out/website-ssr
# mv out apps/website-ssr/
# - name: Run Lighthouse tests on Website SSR
# run: |
# cd apps/website-ssr
# lhci autorun --config=lighthouse.config.js
# env:
# LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
# - name: Move output of website
# run: |
# mkdir -p out
# mv apps/website/out out${{ steps.pages.outputs.base_path }}
# mv out apps/website/
# - name: Run Lighthouse tests on website
# run: |
# cd apps/website
# lhci autorun --config=lighthouse.config.js
# env:
# LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
# - name: Upload website
# uses: actions/upload-artifact@v3
# with:
# name: website
# path: apps/website/out${{ steps.pages.outputs.base_path }}
# retention-days: 1
# - name: Upload e2e test reports
# uses: actions/upload-artifact@v3
# if: ${{ always() }}
# with:
# name: e2e-reports
# path: |
# apps/website-ssr/e2e-report/
# apps/website-ssr/e2e-results/
# apps/website/e2e-report/
# apps/website/e2e-results/
# retention-days: 7