Skip to content

Commit

Permalink
ci: Adapt CI to proton banch
Browse files Browse the repository at this point in the history
  • Loading branch information
lubux committed Nov 26, 2024
1 parent 945a49e commit b42e1d6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 31 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Gomobile for Android

on:
push:
branches: [ main ]
branches: [ main, Proton ]
pull_request:
branches: [ main, v3 ]
branches: [ main, Proton ]

jobs:
build:
Expand All @@ -18,9 +18,9 @@ jobs:
java-version: 1.8

- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.16
go-version: '^1.16'
id: go

- name: Install NDK
Expand Down
27 changes: 6 additions & 21 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Go test and lint

on:
push:
branches: [ main ]
branches: [ main, Proton ]
pull_request:
branches: [ main, v3 ]
branches: [ main, Proton ]

jobs:
test:
Expand All @@ -15,35 +15,20 @@ jobs:
uses: actions/checkout@v4

- name: Set up latest golang
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ^1.18
go-version: '1.22'

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

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

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

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

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.17
go-version: '1.22'
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Gomobile for iOS

on:
push:
branches: [ main ]
branches: [ main, Proton ]
pull_request:
branches: [ main, v3 ]
branches: [ main, Proton ]

jobs:
build:
Expand All @@ -18,10 +18,10 @@ jobs:
xcode-version: 15.3.0
id: xcode

- name: Set up Go 1.x
uses: actions/setup-go@v2
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: ^1.16
go-version: '1.22'
id: go

- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sop-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: SOP interoperability test suite

on:
pull_request:
branches: [ main, v3 ]
branches: [ main, Proton ]

jobs:

Expand Down

0 comments on commit b42e1d6

Please sign in to comment.