1111 runs-on : ubuntu-latest
1212 timeout-minutes : 5
1313 steps :
14- - uses : actions/checkout@v3
14+ # See https://github.com/Automattic/node-canvas/issues/599#issuecomment-1336370909
15+ - run : sudo apt-get install -y libsdl-pango-dev libgif-dev
16+ - uses : actions/checkout@v4
1517 - name : Setup Node.js
16- uses : actions/setup-node@v3
18+ uses : actions/setup-node@v4
1719 with :
1820 node-version-file : ' .node-version'
1921 cache : ' npm'
@@ -26,15 +28,16 @@ jobs:
2628 runs-on : ubuntu-latest
2729 timeout-minutes : 5
2830 steps :
29- - uses : actions/checkout@v3
31+ - run : sudo apt-get install -y libsdl-pango-dev libgif-dev
32+ - uses : actions/checkout@v4
3033 - name : Cache build
3134 id : cache-build
32- uses : actions/cache@v3
35+ uses : actions/cache@v4
3336 with :
3437 path : node_modules/.cache/nx
3538 key : ${{ runner.os }}-${{ hashFiles('package-lock.json') }}-build
3639 - name : Setup Node.js
37- uses : actions/setup-node@v3
40+ uses : actions/setup-node@v4
3841 with :
3942 node-version-file : ' .node-version'
4043 cache : ' npm'
@@ -55,44 +58,46 @@ jobs:
5558 portal
5659 ]
5760 steps :
58- - uses : actions/checkout@v3
61+ - run : sudo apt-get install -y libsdl-pango-dev libgif-dev
62+ - uses : actions/checkout@v4
5963 - name : Cache build
6064 id : cache-build
61- uses : actions/cache@v3
65+ uses : actions/cache@v4
6266 with :
6367 path : node_modules/.cache/nx
6468 key : ${{ runner.os }}-nx-${{ hashFiles('package-lock.json') }}
6569 - name : Setup Node.js
66- uses : actions/setup-node@v3
70+ uses : actions/setup-node@v4
6771 with :
6872 node-version-file : ' .node-version'
6973 cache : ' npm'
7074 cache-dependency-path : ' package-lock.json'
7175 - run : npm ci
7276 - run : npx lerna run build --scope=@fumix/fu-blog-${{ matrix.workspace }}
7377 - run : echo "This file is placed at the project root, so Github preserves the artifact paths (see https://github.com/actions/upload-artifact/issues/206)" > root.txt
74- - uses : actions/upload-artifact@v3
78+ - uses : actions/upload-artifact@v4
7579 with :
76- name : dist
80+ name : dist-${{ matrix.workspace }}
7781 path : | # Important to use `|` to preserve the path (see https://github.com/actions/upload-artifact/issues/55#issuecomment-633825395)
7882 ${{ matrix.workspace }}/dist/**
79- root.txt
83+ root-${{ matrix.workspace }} .txt
8084 if-no-files-found : error
8185
8286 test :
8387 needs : build-app
8488 runs-on : ubuntu-latest
8589 timeout-minutes : 15
8690 steps :
87- - uses : actions/checkout@v3
91+ - run : sudo apt-get install -y libsdl-pango-dev libgif-dev
92+ - uses : actions/checkout@v4
8893 - name : Cache build
8994 id : cache-build
90- uses : actions/cache@v3
95+ uses : actions/cache@v4
9196 with :
9297 path : node_modules/.cache/nx
9398 key : ${{ runner.os }}-nx-${{ hashFiles('package-lock.json') }}
9499 - name : Setup Node.js
95- uses : actions/setup-node@v3
100+ uses : actions/setup-node@v4
96101 with :
97102 node-version-file : ' .node-version'
98103 cache : ' npm'
@@ -111,10 +116,12 @@ jobs:
111116 contents : read
112117 packages : write
113118 steps :
114- - uses : actions/checkout@v3
115- - uses : actions/download-artifact@v3
119+ - run : sudo apt-get install -y libsdl-pango-dev libgif-dev
120+ - uses : actions/checkout@v4
121+ - uses : actions/download-artifact@v4
116122 with :
117- name : dist
123+ pattern : dist-*
124+ merge-multiple : true
118125 - run : |
119126 cp -r server/dist/* docker/app/
120127 cp -rT server/test-data/ docker/app/test-data/
@@ -126,17 +133,17 @@ jobs:
126133 npm install
127134 - name : Extract metadata (tags, labels) for Docker
128135 id : meta
129- uses : docker/metadata-action@v4
136+ uses : docker/metadata-action@v5
130137 with :
131138 images : ${{ env.REGISTRY }}/${{ github.repository }}-app
132139 - name : Log in to the Container registry
133- uses : docker/login-action@v2
140+ uses : docker/login-action@v3
134141 with :
135142 registry : ${{ env.REGISTRY }}
136143 username : ${{ github.actor }}
137144 password : ${{ secrets.GITHUB_TOKEN }}
138145 - name : Build and push Docker image
139- uses : docker/build-push-action@v3
146+ uses : docker/build-push-action@v6
140147 with :
141148 context : docker/app
142149 push : true
@@ -160,10 +167,10 @@ jobs:
160167 en_US
161168 ]
162169 steps :
163- - uses : actions/checkout@v3
170+ - uses : actions/checkout@v4
164171 - name : Extract metadata (tags, labels) for Docker
165172 id : meta
166- uses : docker/metadata-action@v4
173+ uses : docker/metadata-action@v5
167174 with :
168175 images : ${{ env.REGISTRY }}/${{ github.repository }}-postgres
169176 labels : |
@@ -178,13 +185,13 @@ jobs:
178185 latest=auto
179186 suffix=-${{ matrix.language }},onlatest=true
180187 - name : Log in to the Container registry
181- uses : docker/login-action@v2
188+ uses : docker/login-action@v3
182189 with :
183190 registry : ${{ env.REGISTRY }}
184191 username : ${{ github.actor }}
185192 password : ${{ secrets.GITHUB_TOKEN }}
186193 - name : Build and push Docker image
187- uses : docker/build-push-action@v3
194+ uses : docker/build-push-action@v6
188195 with :
189196 build-args : |
190197 language=${{ matrix.language }}
0 commit comments