feat: add support for web transports #437
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: Build and Test | |
# This workflow will run on master branch and on any pull requests targeting master | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
golangci: | |
name: golangci | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. | |
version: v1.54 | |
test: | |
name: Test and Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.18 | |
- name: Check out code | |
uses: actions/checkout@v1 | |
- name: Run Unit tests | |
run: make test-coverage | |
- name: Upload Coverage report to CodeCov | |
uses: codecov/codecov-action@v1.0.0 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
file: ./coverage.txt | |
# test-macos: | |
# name: Test MacOS | |
# runs-on: macos-11 | |
# steps: | |
# - name: Set up Go | |
# uses: actions/setup-go@v1 | |
# with: | |
# go-version: 1.16 | |
# | |
# - name: Check out code | |
# uses: actions/checkout@v1 | |
# | |
# - name: Run Unit tests. | |
# run: make test | |
# | |
# test-windows: | |
# name: Test Windows | |
# runs-on: windows-2019 | |
# steps: | |
# - name: Set up Go | |
# uses: actions/setup-go@v1 | |
# with: | |
# go-version: 1.16 | |
# | |
# - name: Check out code | |
# uses: actions/checkout@v1 | |
# | |
# - name: Run Unit tests. | |
# run: make test | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: [golangci, test] | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.18 | |
- name: Check out code | |
uses: actions/checkout@v1 | |
- name: Build | |
run: make build |