From 42cde13d2b0c9b1a16cc9ed6ac7fd17da2b0de81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=A4fer?= Date: Mon, 9 Sep 2024 14:54:27 +0200 Subject: [PATCH] Update Github Actions --- .github/workflows/build.yml | 55 +++++++++++++++++++++---------------- package-lock.json | 14 +++++----- 2 files changed, 38 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 515b0d1..70f2163 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,9 +11,11 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: actions/checkout@v3 + # See https://github.com/Automattic/node-canvas/issues/599#issuecomment-1336370909 + - run: sudo apt-get install -y libsdl-pango-dev libgif-dev + - uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.node-version' cache: 'npm' @@ -26,15 +28,16 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: actions/checkout@v3 + - run: sudo apt-get install -y libsdl-pango-dev libgif-dev + - uses: actions/checkout@v4 - name: Cache build id: cache-build - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules/.cache/nx key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}-build - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.node-version' cache: 'npm' @@ -55,15 +58,16 @@ jobs: portal ] steps: - - uses: actions/checkout@v3 + - run: sudo apt-get install -y libsdl-pango-dev libgif-dev + - uses: actions/checkout@v4 - name: Cache build id: cache-build - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules/.cache/nx key: ${{ runner.os }}-nx-${{ hashFiles('package-lock.json') }} - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.node-version' cache: 'npm' @@ -71,12 +75,12 @@ jobs: - run: npm ci - run: npx lerna run build --scope=@fumix/fu-blog-${{ matrix.workspace }} - 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 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: dist + name: dist-${{ matrix.workspace }} path: | # Important to use `|` to preserve the path (see https://github.com/actions/upload-artifact/issues/55#issuecomment-633825395) ${{ matrix.workspace }}/dist/** - root.txt + root-${{ matrix-workspace }}.txt if-no-files-found: error test: @@ -84,15 +88,16 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: - - uses: actions/checkout@v3 + - run: sudo apt-get install -y libsdl-pango-dev libgif-dev + - uses: actions/checkout@v4 - name: Cache build id: cache-build - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules/.cache/nx key: ${{ runner.os }}-nx-${{ hashFiles('package-lock.json') }} - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.node-version' cache: 'npm' @@ -111,10 +116,12 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + - run: sudo apt-get install -y libsdl-pango-dev libgif-dev + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 with: - name: dist + pattern: dist-* + merge-multiple: true - run: | cp -r server/dist/* docker/app/ cp -rT server/test-data/ docker/app/test-data/ @@ -126,17 +133,17 @@ jobs: npm install - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ github.repository }}-app - name: Log in to the Container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push Docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: context: docker/app push: true @@ -160,10 +167,10 @@ jobs: en_US ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ github.repository }}-postgres labels: | @@ -178,13 +185,13 @@ jobs: latest=auto suffix=-${{ matrix.language }},onlatest=true - name: Log in to the Container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push Docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: build-args: | language=${{ matrix.language }} diff --git a/package-lock.json b/package-lock.json index c38b2f8..de05732 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3587,9 +3587,9 @@ } }, "node_modules/@vue/devtools-api": { - "version": "6.6.3", - "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.6.3.tgz", - "integrity": "sha512-0MiMsFma/HqA6g3KLKn+AGpL1kgKhFWszC9U29NfpWK5LE7bjeXxySWJrOJ77hBz+TBrBQ7o4QJqbPbqbs8rJw==", + "version": "6.6.4", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.6.4.tgz", + "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==", "license": "MIT" }, "node_modules/@vue/eslint-config-prettier": { @@ -11275,13 +11275,13 @@ } }, "node_modules/openid-client": { - "version": "5.6.5", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-5.6.5.tgz", - "integrity": "sha512-5P4qO9nGJzB5PI0LFlhj4Dzg3m4odt0qsJTfyEtZyOlkgpILwEioOhVVJOrS1iVH494S4Ee5OCjjg6Bf5WOj3w==", + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-5.7.0.tgz", + "integrity": "sha512-4GCCGZt1i2kTHpwvaC/sCpTpQqDnBzDzuJcJMbH+y1Q5qI8U8RBvoSh28svarXszZHR5BAMXbJPX1PGPRE3VOA==", "dev": true, "license": "MIT", "dependencies": { - "jose": "^4.15.5", + "jose": "^4.15.9", "lru-cache": "^6.0.0", "object-hash": "^2.2.0", "oidc-token-hash": "^5.0.3"