1
- name : Docker Hub Pipeline
1
+ name : Docker CI Pipeline
2
2
3
3
on :
4
4
push :
10
10
workflow_dispatch :
11
11
12
12
jobs :
13
- npm -install :
13
+ pnpm -install :
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- name : Checkout repository
@@ -19,68 +19,21 @@ jobs:
19
19
uses : actions/setup-node@v4
20
20
with :
21
21
node-version : 22
22
- cache : ' npm '
22
+ cache : ' pnpm '
23
23
- name : Cache dependencies
24
24
uses : actions/cache@v4
25
25
with :
26
26
path : |
27
- .npm /
27
+ .pnpm-store /
28
28
node_modules/
29
- key : ${{ runner.os }}-npm -cache-${{ hashFiles('**/package -lock.json ') }}
29
+ key : ${{ runner.os }}-pnpm -cache-${{ hashFiles('**/pnpm -lock.yaml ') }}
30
30
restore-keys : |
31
- ${{ runner.os }}-npm -cache-
31
+ ${{ runner.os }}-pnpm -cache-
32
32
- name : Install dependencies
33
- run : npm install
34
-
35
- linting :
36
- runs-on : ubuntu-latest
37
- needs : npm-install
38
- steps :
39
- - name : Checkout repository
40
- uses : actions/checkout@v4
41
- - name : Set up Node.js
42
- uses : actions/setup-node@v4
43
- with :
44
- node-version : 22
45
- cache : ' npm'
46
- - name : Cache dependencies
47
- uses : actions/cache/restore@v4
48
- with :
49
- path : |
50
- .npm/
51
- node_modules/
52
- key : ${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
53
- restore-keys : |
54
- ${{ runner.os }}-npm-cache-
55
- - name : Run linting
56
- run : npm run lint
57
-
58
- test :
59
- runs-on : ubuntu-latest
60
- needs : npm-install
61
- steps :
62
- - name : Checkout repository
63
- uses : actions/checkout@v4
64
- - name : Set up Node.js
65
- uses : actions/setup-node@v4
66
- with :
67
- node-version : 22
68
- cache : ' npm'
69
- - name : Cache dependencies
70
- uses : actions/cache/restore@v4
71
- with :
72
- path : |
73
- .npm/
74
- node_modules/
75
- key : ${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
76
- restore-keys : |
77
- ${{ runner.os }}-npm-cache-
78
- - name : Run tests
79
- run : npm test
33
+ run : pnpm install
80
34
81
35
build :
82
36
runs-on : ubuntu-latest
83
- needs : [test, linting]
84
37
env :
85
38
VERSION_TAG : ${{ github.ref_name }}-${{ github.sha }}
86
39
steps :
@@ -90,19 +43,17 @@ jobs:
90
43
uses : actions/setup-node@v4
91
44
with :
92
45
node-version : 22
93
- - name : Install Ember CLI
94
- run : npm install -g ember-cli
95
46
- name : Cache dependencies
96
- uses : actions/cache/restore @v4
47
+ uses : actions/cache@v4
97
48
with :
98
49
path : |
99
- .npm /
50
+ .pnpm-store /
100
51
node_modules/
101
- key : ${{ runner.os }}-npm -cache-${{ hashFiles('**/package -lock.json ') }}
52
+ key : ${{ runner.os }}-pnpm -cache-${{ hashFiles('**/pnpm -lock.yaml ') }}
102
53
restore-keys : |
103
- ${{ runner.os }}-npm -cache-
54
+ ${{ runner.os }}-pnpm -cache-
104
55
- name : Build production
105
- run : ember build --prod
56
+ run : pnpm run build
106
57
- name : Upload dist folder as artifact
107
58
uses : actions/upload-artifact@v4
108
59
with :
0 commit comments