Update Actions

This commit is contained in:
Justin Hammond 2021-09-22 15:57:54 +08:00
parent 87f8e2efc8
commit 0cf1e59e2d

View file

@ -13,7 +13,7 @@ jobs:
strategy: strategy:
matrix: matrix:
go-version: [ 1.16.x, 1.15.x, 1.14.x, 1.13.x ] go-version: [ 1.16.x, 1.15.x, 1.14.x, 1.13.x ]
platform: [ ubuntu-latest, macos-latest ] platform: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
- name: Install Go - name: Install Go
@ -24,7 +24,7 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Run tests - name: Run tests
run: go test -v -race run: go test -v -race ./...
codecov: codecov:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: test needs: test
@ -35,7 +35,7 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Run tests - name: Run tests
run: go test -v -race -covermode=atomic -coverprofile=coverage.out run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
- name: CodeCov - name: CodeCov
uses: codecov/codecov-action@v2 uses: codecov/codecov-action@v2
lint: lint: