Support iso8601 #32
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: | |
- "main" | |
tags: | |
- "v*.*.*" | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go: | |
- '^1.20' | |
- '^1.21' | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: vet | |
run: go vet ./... | |
- name: Declare some variables | |
id: vars | |
run: | | |
echo "coverage_txt=${RUNNER_TEMP}/coverage.txt" >> "$GITHUB_OUTPUT" | |
- name: Test Coverage (pkg) | |
run: go test ./... -race -coverprofile=${{ steps.vars.outputs.coverage_txt }} | |
- name: Upload coverage | |
if: ${{ matrix.go == '^1.21' }} | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ${{ steps.vars.outputs.coverage_txt }} |