mirror of
https://github.com/aclindsa/ofxgo.git
synced 2025-07-31 22:55:18 -04:00
The macos-latest runners are now arm64, and there wasn't a golang version built for arm64 before 1.19.x. Also, the latest Vanguard commit uses 'tls.CipherSuites', which didn't exist before 1.14, so drop support (i.e. testing) for anything before then.
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: ofxgo CI Test
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.19.x, 1.22.x, 1.24.x]
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
include:
|
|
- os: ubuntu-latest
|
|
go-version: 1.14.x
|
|
- os: windows-latest
|
|
go-version: 1.14.x
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Install Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Test
|
|
run: go test -v -covermode=count -coverprofile="profile.cov" ./...
|
|
- name: Send Coverage
|
|
uses: shogo82148/actions-goveralls@v1
|
|
with:
|
|
path-to-profile: "profile.cov"
|
|
flag-name: ${{ matrix.os }}-go-${{ matrix.go-version }}
|
|
parallel: true
|
|
# notifies that all test jobs are finished.
|
|
finish:
|
|
needs: test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: shogo82148/actions-goveralls@v1
|
|
with:
|
|
parallel-finished: true
|