ci: Update github workflow actions (#298)
- update actions/download-artifact to v4 - update actions/checkout to v4 - update actions/upload-artifact to v4
This commit is contained in:
parent
4e8fad59d6
commit
dec9c18fc6
5 changed files with 20 additions and 20 deletions
4
.github/actions/build-gosop/action.yml
vendored
4
.github/actions/build-gosop/action.yml
vendored
|
|
@ -16,7 +16,7 @@ runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout gopenpgp
|
- name: Checkout gopenpgp
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.gopenpgp-ref }}
|
ref: ${{ inputs.gopenpgp-ref }}
|
||||||
path: gopenpgp
|
path: gopenpgp
|
||||||
|
|
@ -32,7 +32,7 @@ runs:
|
||||||
with:
|
with:
|
||||||
go-version: ^1.18
|
go-version: ^1.18
|
||||||
- name: Check out gosop
|
- name: Check out gosop
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: ProtonMail/gosop
|
repository: ProtonMail/gosop
|
||||||
ref: ${{ env.GOSOP_BRANCH_REF}}
|
ref: ${{ env.GOSOP_BRANCH_REF}}
|
||||||
|
|
|
||||||
4
.github/workflows/android.yml
vendored
4
.github/workflows/android.yml
vendored
|
|
@ -30,7 +30,7 @@ jobs:
|
||||||
link-to-sdk: true
|
link-to-sdk: true
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
find dist
|
find dist
|
||||||
|
|
||||||
- name: Upload Android artifacts
|
- name: Upload Android artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Android build
|
name: Android build
|
||||||
path: dist/android
|
path: dist/android
|
||||||
|
|
|
||||||
6
.github/workflows/go.yml
vendored
6
.github/workflows/go.yml
vendored
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- name: Check out repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up latest golang
|
- name: Set up latest golang
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v3
|
||||||
|
|
@ -27,7 +27,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- name: Check out repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Go 1.17
|
- name: Set up Go 1.17
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v3
|
||||||
|
|
@ -44,7 +44,7 @@ jobs:
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.17
|
go-version: 1.17
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v3
|
uses: golangci/golangci-lint-action@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
4
.github/workflows/ios.yml
vendored
4
.github/workflows/ios.yml
vendored
|
|
@ -25,7 +25,7 @@ jobs:
|
||||||
id: go
|
id: go
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
|
|
@ -35,7 +35,7 @@ jobs:
|
||||||
find dist
|
find dist
|
||||||
|
|
||||||
- name: Upload xcframework
|
- name: Upload xcframework
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: gopenpgp.xcframework
|
name: gopenpgp.xcframework
|
||||||
path: dist/apple/gopenpgp.xcframework
|
path: dist/apple/gopenpgp.xcframework
|
||||||
|
|
|
||||||
22
.github/workflows/sop-test-suite.yml
vendored
22
.github/workflows/sop-test-suite.yml
vendored
|
|
@ -11,14 +11,14 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Build gosop from branch
|
- name: Build gosop from branch
|
||||||
uses: ./.github/actions/build-gosop
|
uses: ./.github/actions/build-gosop
|
||||||
with:
|
with:
|
||||||
binary-location: ./gosop-${{ github.sha }}
|
binary-location: ./gosop-${{ github.sha }}
|
||||||
# Upload as artifact
|
# Upload as artifact
|
||||||
- name: Upload gosop artifact
|
- name: Upload gosop artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: gosop-${{ github.sha }}
|
name: gosop-${{ github.sha }}
|
||||||
path: ./gosop-${{ github.sha }}
|
path: ./gosop-${{ github.sha }}
|
||||||
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Build gosop from branch
|
- name: Build gosop from branch
|
||||||
uses: ./.github/actions/build-gosop
|
uses: ./.github/actions/build-gosop
|
||||||
with:
|
with:
|
||||||
|
|
@ -36,7 +36,7 @@ jobs:
|
||||||
binary-location: ./gosop-target
|
binary-location: ./gosop-target
|
||||||
# Upload as artifact
|
# Upload as artifact
|
||||||
- name: Upload gosop-target artifact
|
- name: Upload gosop-target artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: gosop-target
|
name: gosop-target
|
||||||
path: ./gosop-target
|
path: ./gosop-target
|
||||||
|
|
@ -55,10 +55,10 @@ jobs:
|
||||||
- build-gosop-target
|
- build-gosop-target
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
# Fetch gosop from target
|
# Fetch gosop from target
|
||||||
- name: Download gosop-target
|
- name: Download gosop-target
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: gosop-target
|
name: gosop-target
|
||||||
# Test gosop-target
|
# Test gosop-target
|
||||||
|
|
@ -68,7 +68,7 @@ jobs:
|
||||||
run: ./gosop-target version --extended
|
run: ./gosop-target version --extended
|
||||||
# Fetch gosop from branch
|
# Fetch gosop from branch
|
||||||
- name: Download gosop-branch
|
- name: Download gosop-branch
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: gosop-${{ github.sha }}
|
name: gosop-${{ github.sha }}
|
||||||
- name: Rename gosop-branch
|
- name: Rename gosop-branch
|
||||||
|
|
@ -94,12 +94,12 @@ jobs:
|
||||||
RESULTS_HTML: .github/test-suite/test-suite-results.html
|
RESULTS_HTML: .github/test-suite/test-suite-results.html
|
||||||
# Upload results
|
# Upload results
|
||||||
- name: Upload test results json artifact
|
- name: Upload test results json artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: test-suite-results.json
|
name: test-suite-results.json
|
||||||
path: .github/test-suite/test-suite-results.json
|
path: .github/test-suite/test-suite-results.json
|
||||||
- name: Upload test results html artifact
|
- name: Upload test results html artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: test-suite-results.html
|
name: test-suite-results.html
|
||||||
path: .github/test-suite/test-suite-results.html
|
path: .github/test-suite/test-suite-results.html
|
||||||
|
|
@ -110,10 +110,10 @@ jobs:
|
||||||
needs: test-suite
|
needs: test-suite
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Download test results json artifact
|
- name: Download test results json artifact
|
||||||
id: download-test-results
|
id: download-test-results
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: test-suite-results.json
|
name: test-suite-results.json
|
||||||
- name: Compare with baseline
|
- name: Compare with baseline
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue