Add Align to align HTTP headers #39
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: Tests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
# The branches below must be a subset of the branches above | |
branches: [ "main" ] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
go: [1.21.x, 1.20.x] # when updating versions, update it below too. | |
runs-on: ${{ matrix.os }} | |
name: Test | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Test | |
# TODO(henvic): Skip generating code coverage when not sending it to Coveralls to speed up testing. | |
continue-on-error: ${{ matrix.os != 'ubuntu-latest' || matrix.go != '1.21.x' }} | |
run: go test -race -covermode atomic -coverprofile=profile.cov ./... | |
- name: Code coverage | |
if: ${{ matrix.os == 'ubuntu-latest' && matrix.go == '1.21.x' }} | |
uses: shogo82148/actions-goveralls@v1 | |
with: | |
path-to-profile: profile.cov |