Skip to content

Commit

Permalink
update go github action and remove golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
xhit committed Jul 4, 2023
1 parent c86cc44 commit ca399f9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 42 deletions.
50 changes: 28 additions & 22 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,38 @@
name: Go
on: [push, pull_request]
name: build
jobs:

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
test:
strategy:
matrix:
go-version: [1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x]
os: [ubuntu-latest, macos-latest, windows-latest]
targetplatform: [x86, x64]

jobs:
runs-on: ${{ matrix.os }}

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.14
uses: actions/setup-go@v2
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.14
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
go-version: ${{ matrix.go-version }}

# - name: Get dependencies
# run: go get -v -t -d ./...
- name: Checkout code
uses: actions/checkout@v3

# - name: Build
# run: go build -v .
- name: Get dependencies
run: |
env GO111MODULE=on go vet ./...
- name: Build
run: go build -v .

- name: Test
run: go test -v .
run: env GO111MODULE=on go test -v -timeout 30m -race ./... -coverprofile=coverage.txt -covermode=atomic

- name: Codecov
uses: codecov/codecov-action@v3
with:
file: coverage.txt
flags: unittests
name: codecov-umbrella
20 changes: 0 additions & 20 deletions .github/workflows/golangci-lint.yml

This file was deleted.

0 comments on commit ca399f9

Please sign in to comment.