fix: remove outdated example test (#135) #17
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 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
paths: | |
- 'examples/*' | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v2 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20.0" | |
- name: Cache Go modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
# Here, we simply print the exact go version, to have it as part of the | |
# action's output, which might be convenient. | |
- name: Print Go version | |
run: go version | |
- name: Build examples | |
run: for dir in examples/*/; do go build -o $dir/bin $dir/main.go; done |