Validate content type header parameter #593
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
# GitHub Actions - CI for Go to build & test. See ci-go-cover.yml and linters.yml for code coverage and linters. | |
# Taken from: https://github.com/fxamacker/cbor/workflows/ci.yml (thanks!) | |
name: ci | |
on: [push, pull_request] | |
jobs: | |
# Test on various OS with default Go version. | |
tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: [1.18, 1.19] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
check-latest: true | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Run tests | |
run: go test -race -v -coverprofile=coverage.txt . | |
- name: Upload coverage to codecov.io | |
uses: codecov/codecov-action@v3 |