Skip to content

Feature/client fallback sse #412

Feature/client fallback sse

Feature/client fallback sse #412

Workflow file for this run

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.51
test:
name: Test and Coverage
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.17
- name: Check out code
uses: actions/checkout@v1
- name: Run Unit tests.
run: make test-coverage
- name: Upload Coverage report to CodeCov
uses: codecov/[email protected]
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.16
- name: Check out code
uses: actions/checkout@v1
- name: Build
run: make build