Skip to content

PR and Regression testing for Go snippets #1

PR and Regression testing for Go snippets

PR and Regression testing for Go snippets #1

name: Go PR Test
on:
pull_request:
paths:
- 'examples/go/**'
- '.github/workflows/go-pr-test.yaml'
jobs:
go-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Tidy modules
run: |
find examples/go -name 'go.mod' -execdir go mod tidy \;
- name: Run go test
working-directory: ./examples/go
run: go test ./...
- name: Build Go snippets
run: ./tools/go-snippets/runner.sh build