File tree 3 files changed +52
-1
lines changed
3 files changed +52
-1
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,27 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v4
15
+ with :
16
+ fetch-depth : 100
17
+
18
+ - uses : nrwl/nx-set-shas@v3
15
19
16
20
- uses : actions/setup-node@v4
17
21
with :
18
22
node-version : " 20.x"
19
23
cache : " npm"
20
24
cache-dependency-path : " **/package-lock.json"
21
25
26
+ - name : Cache NX
27
+ uses : actions/cache@v4
28
+ with :
29
+ path : .nx/cache
30
+ key : nx-${{ env.NX_BRANCH }}-${{ env.NX_RUN_GROUP }}-${{ github.sha }}
31
+ restore-keys : |
32
+ nx-${{ env.NX_BRANCH }}-${{ env.NX_RUN_GROUP }}-
33
+ nx-${{ env.NX_BRANCH }}-
34
+ nx-
35
+
22
36
- name : Install Dependencies
23
37
run : npm ci --prefer-offline --no-audit
24
38
@@ -51,12 +65,29 @@ jobs:
51
65
browser : [chromium, firefox, webkit]
52
66
steps :
53
67
- uses : actions/checkout@v4
68
+ with :
69
+ fetch-depth : 100
70
+
71
+ - uses : nrwl/nx-set-shas@v3
72
+
54
73
- uses : actions/setup-node@v4
55
74
with :
56
75
node-version : " 20.x"
57
76
cache : " npm"
58
77
cache-dependency-path : " **/package-lock.json"
78
+
79
+ - name : Cache NX
80
+ uses : actions/cache@v4
81
+ with :
82
+ path : .nx/cache
83
+ key : nx-${{ env.NX_BRANCH }}-${{ env.NX_RUN_GROUP }}-${{ github.sha }}
84
+ restore-keys : |
85
+ nx-${{ env.NX_BRANCH }}-${{ env.NX_RUN_GROUP }}-
86
+ nx-${{ env.NX_BRANCH }}-
87
+ nx-
88
+
59
89
- run : apt-get update && apt-get install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
90
+
60
91
- name : Install dependencies
61
92
run : npm ci --prefer-offline --no-audit
62
93
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " node_modules/lerna/schemas/lerna-schema.json" ,
3
3
"useWorkspaces" : true ,
4
- "version" : " 0.24.2"
4
+ "version" : " 0.24.2" ,
5
+ "useNx" : true
5
6
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "tasksRunnerOptions" : {
3
+ "default" : {
4
+ "runner" : " nx/tasks-runners/default" ,
5
+ "options" : {
6
+ "cacheableOperations" : [" build" , " test" ]
7
+ }
8
+ }
9
+ },
10
+ "targetDefaults" : {
11
+ "build" : {
12
+ "dependsOn" : [" ^build" ],
13
+ "outputs" : [" {projectRoot}/dist" ]
14
+ },
15
+ "test" : {
16
+ "dependsOn" : [" ^test" ]
17
+ }
18
+ }
19
+ }
You can’t perform that action at this time.
0 commit comments