File tree Expand file tree Collapse file tree 2 files changed +16
-38
lines changed Expand file tree Collapse file tree 2 files changed +16
-38
lines changed Original file line number Diff line number Diff line change 5
5
- main
6
6
pull_request :
7
7
types : [opened, synchronize, reopened, edited]
8
-
8
+ env :
9
+ NX_REJECT_UNKNOWN_LOCAL_CACHE : 0
9
10
jobs :
10
11
build :
11
12
name : Build
@@ -42,12 +43,18 @@ jobs:
42
43
- name : Install Dependencies
43
44
run : pnpm install
44
45
45
- - name : Lint packages
46
- run : pnpm run lint
47
-
48
46
- name : Build packages
49
47
run : pnpm run build
50
48
49
+ test :
50
+ name : " Test"
51
+ runs-on : ubuntu-latest
52
+ needs : build
53
+ timeout-minutes : 60
54
+ steps :
55
+ - name : Lint packages
56
+ run : pnpm run lint
57
+
51
58
- name : Run unit tests
52
59
run : pnpm run test
53
60
64
71
playwright :
65
72
name : " Playwright Tests - ${{ matrix.browser }}"
66
73
runs-on : ubuntu-latest
74
+ needs : build
67
75
timeout-minutes : 60
68
76
container :
69
77
image : mcr.microsoft.com/playwright:v1.51.1-noble
72
80
matrix :
73
81
browser : [chromium, firefox, webkit]
74
82
steps :
75
- - uses : actions/checkout@v4
76
- with :
77
- fetch-depth : 100
78
-
79
- - name : Install pnpm
80
- uses : pnpm/action-setup@v4
81
-
82
- - uses : nrwl/nx-set-shas@v3
83
-
84
- - uses : actions/setup-node@v4
85
- with :
86
- cache : " pnpm"
87
- cache-dependency-path : " **/pnpm-lock.yaml"
88
- node-version-file : " .nvmrc"
89
-
90
- - name : Cache NX
91
- uses : actions/cache@v4
92
- with :
93
- path : .nx/cache
94
- key : nx-${{ env.NX_BRANCH }}-${{ env.NX_RUN_GROUP }}-${{ github.sha }}
95
- restore-keys : |
96
- nx-${{ env.NX_BRANCH }}-${{ env.NX_RUN_GROUP }}-
97
- nx-${{ env.NX_BRANCH }}-
98
- nx-
99
-
100
- - run : apt-get update && apt-get install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev pkg-config
101
-
102
- - name : Install dependencies
103
- run : pnpm install
104
-
105
- - name : Build packages
106
- run : pnpm run build
107
-
108
83
- name : Run server and Playwright tests
109
84
run : |
110
85
HOME=/root PLAYWRIGHT_CONFIG="--project ${{ matrix.browser }}" pnpm run e2e
Original file line number Diff line number Diff line change 6
6
tags :
7
7
- v*.*.*
8
8
9
+ env :
10
+ NX_REJECT_UNKNOWN_LOCAL_CACHE : 0
11
+
9
12
jobs :
10
- test :
13
+ publish :
11
14
name : Publish
12
15
runs-on : ubuntu-latest
13
16
permissions :
You can’t perform that action at this time.
0 commit comments