add return channel #3
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 go package | |
on: [pull_request] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
if: steps.filter.outputs.go == 'true' || steps.filter.outputs.workflows == 'true' | |
uses: actions/setup-go@v4 | |
with: | |
go-version: stable | |
cache: true | |
cache-dependency-path: go/go.sum | |
- name: Build & test (debug mode) | |
run: | | |
make GOTAGS=debug | |
make GOTAGS=debug test | |
- name: Build & test | |
if: steps.filter.outputs.go == 'true' || steps.filter.outputs.workflows == 'true' | |
run: | | |
make | |
make test |