From 7a1dd2ad5cdd3a3d0e9e13a2a9de8c54f3abc065 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Mon, 24 Oct 2022 10:28:37 +0200 Subject: [PATCH 1/4] ci: use ubuntu-22.04 runners --- .github/workflows/publish.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ac0241b5..4a88e620 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,7 +28,7 @@ jobs: # https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages publish-npm: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bd003212..743b9347 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,7 @@ on: jobs: # Audit dependencies for known vulnerabilities audit-dependencies: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 From 9d671c1bb7e44cc2459b0d33a00d334b7c23aeb4 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Mon, 24 Oct 2022 10:28:57 +0200 Subject: [PATCH 2/4] ci: use node 16 in runners --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4a88e620..ad200bd0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: "16" registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm publish From f23d693acf868adb5d9cd9afaa0ea172bfd4f417 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Mon, 24 Oct 2022 10:29:35 +0200 Subject: [PATCH 3/4] ci: update to use vX versions of docker actions --- .github/workflows/publish.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ad200bd0..e11de425 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -42,19 +42,19 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.npm_token }} publish-docker: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 # Setup docker to build for multiple platforms, see: - # https://github.com/docker/build-push-action/tree/v2.4.0#usage - # https://github.com/docker/build-push-action/blob/v2.4.0/docs/advanced/multi-platform.md + # https://github.com/docker/build-push-action/tree/HEAD#usage + # https://github.com/docker/build-push-action/blob/HEAD/docs/advanced/multi-platform.md - name: Set up QEMU (for docker buildx) - uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # associated tag: v1.0.2 + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx (for multi-arch builds) - uses: docker/setup-buildx-action@95cb08cb2672c73d4ffd2f422e6d11953d2a9c70 # associated tag: v1.1.2 + uses: docker/setup-buildx-action@v2 - name: Setup push rights to Docker Hub # This was setup by... @@ -89,7 +89,7 @@ jobs: run: echo "Docker tags ${{ steps.gettags.outputs.tags }}" - name: Build and push - uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5 # associated tag: v2.4.0 + uses: docker/build-push-action@v3 with: platforms: linux/amd64,linux/arm64 push: ${{ startsWith(github.ref, 'refs/tags/') }} From a716ce6d3f8e77a470a301254f8a8a889769dea0 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Mon, 24 Oct 2022 10:30:02 +0200 Subject: [PATCH 4/4] ci: stop tests against node 17, test against node 18 and 19 --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 743b9347..92f56039 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -63,7 +63,8 @@ jobs: - "12" - "14" - "16" - - "17" + - "18" + - "19" steps: - uses: actions/checkout@v3