Skip to content

Support iso8601

Support iso8601 #32

Workflow file for this run

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 }}