Skip to content

Commit

Permalink
ci: Update to gopenpgp v3
Browse files Browse the repository at this point in the history
  • Loading branch information
lubux committed Dec 7, 2023
1 parent 0d044f3 commit a07a7f4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 24 deletions.
5 changes: 5 additions & 0 deletions .github/actions/build-gosop/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: 'build-gosop'
description: 'Build gosop from the current branch'

inputs:
gosop-ref:
description: 'gosop branch tag or commit to build from'
required: false
default: 'main'

gopenpgp-ref:
description: 'gopenpgp branch tag or commit to build from'
Expand Down Expand Up @@ -30,6 +34,7 @@ runs:
uses: actions/checkout@v3
with:
repository: ProtonMail/gosop
ref: ${{ inputs.gosop-ref }}
path: gosop
- name: Cache go modules
uses: actions/cache@v3
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@ jobs:
go-version: ^1.16
id: go

- name: Install NDK
run: echo "y" | $ANDROID_HOME/tools/bin/sdkmanager "ndk;23.2.8568313"

- name: Set NDK environment to 23.2.8568313
run: $ANDROID_NDK_HOME=$ANDROID_NDK_HOME/../23.2.856831323*

- name: Checkout
uses: actions/checkout@v2

- name: Build
run: |
for d in $ANDROID_NDK_HOME/../23*; do
ANDROID_NDK_HOME=$d
done
./build.sh android
find dist
Expand Down
17 changes: 1 addition & 16 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,6 @@ jobs:
- name: Test
run: go test -v -race ./...

test-old:
name: Test with 1.15
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3

- name: Set up Go 1.15
uses: actions/setup-go@v3
with:
go-version: 1.15

- name: Test
run: go test -v -race ./...

lint:
name: Lint
runs-on: ubuntu-latest
Expand All @@ -48,4 +33,4 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.50.1
version: v1.54.2
3 changes: 0 additions & 3 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ jobs:
env:
platform: ${{ 'iOS Simulator' }}
run: |
for d in $ANDROID_NDK_HOME/../23*; do
ANDROID_NDK_HOME=$d
done
./build.sh apple
find dist
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/sop-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
uses: ./.github/actions/build-gosop
with:
binary-location: ./gosop-${{ github.sha }}
gosop-ref: gosop-gopenpgp-v3
# Upload as artifact
- name: Upload gosop artifact
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -46,7 +47,7 @@ jobs:
name: Run interoperability test suite
runs-on: ubuntu-latest
container:
image: ghcr.io/protonmail/openpgp-interop-test-docker:v1.1.1
image: ghcr.io/protonmail/openpgp-interop-test-docker:v.1.1.3
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
Expand Down Expand Up @@ -117,7 +118,7 @@ jobs:
with:
name: test-suite-results.json
- name: Compare with baseline
uses: ProtonMail/openpgp-interop-test-analyzer@v1
uses: ProtonMail/openpgp-interop-test-analyzer@5d7f4b6868ebe3bfc909302828342c461f5f4940
with:
results: ${{ steps.download-test-results.outputs.download-path }}/test-suite-results.json
output: baseline-comparison.json
Expand Down

0 comments on commit a07a7f4

Please sign in to comment.