Skip to content

update the array list #39

update the array list

update the array list #39

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
name: All builds
jobs:
build:
strategy:
matrix:
go-version: ["1.18", "1.19", "1.20", "1.21", "1.22", "1.23"]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- run: ./.ci.gofmt.sh
- run: ./.ci.govet.sh
- run: go test -v -race ./...
test:
strategy:
matrix:
go-version: ["1.18", "1.19", "1.20", "1.21", "1.22", "1.23"]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: go test ./... -race -v -covermode=count
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Checkout code
uses: actions/checkout@v2
- name: Calc coverage
run: |
go test `go list ./... | grep -v examples` -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage report
uses: codecov/[email protected]
with:
token: 1822df40-f576-4ae9-ab34-b8bdade485de
file: ./coverage.txt
flags: unittests
name: codecov-umbrella