File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change 19
19
- name : Get branch names.
20
20
id : branch-names
21
21
uses : tj-actions/branch-names@v8
22
-
23
- - name : Running on the default branch.
24
- if : steps.branch-names.outputs.is_default == 'true'
25
- run : |
26
- echo "Running on default: ${{ steps.branch-names.outputs.current_branch }}"
27
22
- name : Restore cached .nx
28
23
id : cache-nx-restore
29
24
uses : actions/cache/restore@v4
70
65
fetch-depth : 0
71
66
- name : Npm install
72
67
uses : ./.github/actions
68
+ - name : Get branch names.
69
+ id : branch-names
70
+ uses : tj-actions/branch-names@v8
71
+ - name : Restore cached .nx
72
+ id : cache-nx-restore
73
+ uses : actions/cache/restore@v4
74
+ with :
75
+ path : |
76
+ .nx
77
+ key : ${{ runner.os }}-nx-${{ steps.branch-names.outputs.current_branch }}"
73
78
- run : git branch --track main origin/master
74
79
- run : npm run typeorm migration:run
75
80
- run : npm run seed:run
76
81
- run : npx nx affected -t e2e --parallel=1
82
+ - name : Save cached .nx
83
+ id : cache-dependencies-save
84
+ uses : actions/cache/save@v4
85
+ with :
86
+ path : |
87
+ .nx
88
+ key : ${{ steps.cache-nx-restore.outputs.cache-primary-key }}
You can’t perform that action at this time.
0 commit comments