Skip to content

Commit

Permalink
ci: Update github workflow actions
Browse files Browse the repository at this point in the history
- update actions/download-artifact to v4
- update actions/checkout to v4
- update actions/upload-artifact to v4
  • Loading branch information
lubux committed Sep 20, 2024
1 parent 4e8fad5 commit c1a3f5d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build-gosop/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
using: "composite"
steps:
- name: Checkout gopenpgp
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ inputs.gopenpgp-ref }}
path: gopenpgp
Expand All @@ -32,7 +32,7 @@ runs:
with:
go-version: ^1.18
- name: Check out gosop
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ProtonMail/gosop
ref: ${{ env.GOSOP_BRANCH_REF}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
link-to-sdk: true

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Build
run: |
Expand All @@ -41,7 +41,7 @@ jobs:
find dist
- name: Upload Android artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Android build
path: dist/android
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up latest golang
uses: actions/setup-go@v3
Expand All @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go 1.17
uses: actions/setup-go@v3
Expand All @@ -44,7 +44,7 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: 1.17
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
id: go

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Build
env:
Expand All @@ -35,7 +35,7 @@ jobs:
find dist
- name: Upload xcframework
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: gopenpgp.xcframework
path: dist/apple/gopenpgp.xcframework
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/sop-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build gosop from branch
uses: ./.github/actions/build-gosop
with:
binary-location: ./gosop-${{ github.sha }}
# Upload as artifact
- name: Upload gosop artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: gosop-${{ github.sha }}
path: ./gosop-${{ github.sha }}
Expand All @@ -28,15 +28,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build gosop from branch
uses: ./.github/actions/build-gosop
with:
gopenpgp-ref: ${{ github.base_ref }}
binary-location: ./gosop-target
# Upload as artifact
- name: Upload gosop-target artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: gosop-target
path: ./gosop-target
Expand All @@ -55,10 +55,10 @@ jobs:
- build-gosop-target
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
# Fetch gosop from target
- name: Download gosop-target
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: gosop-target
# Test gosop-target
Expand All @@ -68,7 +68,7 @@ jobs:
run: ./gosop-target version --extended
# Fetch gosop from branch
- name: Download gosop-branch
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: gosop-${{ github.sha }}
- name: Rename gosop-branch
Expand All @@ -94,12 +94,12 @@ jobs:
RESULTS_HTML: .github/test-suite/test-suite-results.html
# Upload results
- name: Upload test results json artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-suite-results.json
path: .github/test-suite/test-suite-results.json
- name: Upload test results html artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-suite-results.html
path: .github/test-suite/test-suite-results.html
Expand All @@ -110,10 +110,10 @@ jobs:
needs: test-suite
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download test results json artifact
id: download-test-results
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: test-suite-results.json
- name: Compare with baseline
Expand Down

0 comments on commit c1a3f5d

Please sign in to comment.