Skip to content

Commit

Permalink
Merge pull request #383 from privacybydesign/phase-out-deprecated-act…
Browse files Browse the repository at this point in the history
…ions

Chore: phase out deprecated GitHub Actions packages
  • Loading branch information
ivard authored Jul 16, 2024
2 parents 9ec208b + 60664f2 commit fc5e46f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:
using: composite
steps:
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ^1.21

Expand Down
8 changes: 4 additions & 4 deletions .github/actions/integration-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
using: composite
steps:
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ^1.18

Expand All @@ -25,7 +25,7 @@ runs:

- name: Download IRMA server artifact (artifact id)
if: ${{ !startsWith(inputs.irma-server-artifact, 'https://') }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.irma-server-artifact }}
path: bin-is
Expand All @@ -41,7 +41,7 @@ runs:

- name: Download keyshare server artifact (artifact id)
if: ${{ !startsWith(inputs.keyshare-server-artifact, 'https://') }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.keyshare-server-artifact }}
path: bin-ks
Expand All @@ -64,7 +64,7 @@ runs:
shell: bash

- name: Checkout test code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ inputs.test-ref }}
path: irmago_test_checkout
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
is-head-master: ${{ steps.is-head-master.outcome == 'success' }}
is-latest-release: ${{ steps.is-latest-release.outcome == 'success' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: master
fetch-depth: 0
Expand All @@ -38,7 +38,7 @@ jobs:
run: git rev-parse HEAD | grep -x ${{ github.sha }}
shell: bash

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Check whether version.go contains the new version number
if: github.event_name == 'release'
Expand All @@ -63,7 +63,7 @@ jobs:
runs-on: ubuntu-latest
needs: prepare
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
- os: darwin
arch: arm
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build artifact
uses: ./.github/actions/build
Expand All @@ -122,7 +122,7 @@ jobs:
arch: ${{ matrix.arch }}

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: irma-${{ matrix.os }}-${{ matrix.arch }}
path: ${{ steps.build.outputs.artifact-name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/status-checks-dockerfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build Dockerfile
run: docker build -t ghcr.io/${{ github.repository_owner }}/irma:${{ github.sha }} .
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/status-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
arch: arm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build artifact
uses: ./.github/actions/build
Expand All @@ -35,15 +35,15 @@ jobs:
arch: ${{ matrix.arch }}

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: irma-${{ matrix.os }}-${{ matrix.arch }}
path: ${{ steps.build.outputs.artifact-name }}

docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# We only run the build stage to prevent that the IRMA schemes are downloaded.
- name: Run Dockerfile build stage
Expand All @@ -56,10 +56,10 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version-file: go.mod

Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run all unit tests
run: docker-compose run test -v ./...

Expand All @@ -107,7 +107,7 @@ jobs:
- v0.13.2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Run integration test
uses: ./.github/actions/integration-test
Expand All @@ -124,7 +124,7 @@ jobs:
- f0023141ec429d912e329665f937d05b178a3fee # v0.13.2 (integration test did not exist when version tag was created)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Run integration test
uses: ./.github/actions/integration-test
Expand All @@ -147,10 +147,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version-file: go.mod

Expand Down

0 comments on commit fc5e46f

Please sign in to comment.