From 02d7d86f859dc961e443ce278deccfff3d08f141 Mon Sep 17 00:00:00 2001 From: Rhys Berrow <47635349+berroar@users.noreply.github.com> Date: Tue, 9 Jul 2024 08:24:28 +0100 Subject: [PATCH] Update actions versions (#83) --- .github/workflows/main.yml | 2 +- .github/workflows/pull_request.yml | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2a2ffe07..65ab957a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: docker-push: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build run: docker build -t onsdigital/eq-questionnaire-launcher:latest . - name: Push diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 923f2095..45db8644 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -10,14 +10,15 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: "1.21.x" + cache: false - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Cache dependencies id: cache-dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -38,7 +39,7 @@ jobs: uses: golangci/golangci-lint-action@v4 with: version: v1.57 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" cache: "npm" @@ -49,7 +50,7 @@ jobs: with: version: 1.8.2 virtualenvs-create: true - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_VERSION }} cache: 'poetry' @@ -64,7 +65,7 @@ jobs: docker-push: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Tag run: | CLEAN_TAG=$(echo "${{ github.event.pull_request.head.ref }}" | tr / -)