2022-07-16 15:29:26 +00:00
|
|
|
name: Build and test
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: Build and test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
2022-07-16 21:22:18 +00:00
|
|
|
- name: Set up Go
|
2022-07-16 15:29:26 +00:00
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2023-12-21 13:04:50 +00:00
|
|
|
go-version: ^1.21
|
2022-07-16 15:29:26 +00:00
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v2
|
2022-07-31 18:59:16 +00:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2022-07-16 15:29:26 +00:00
|
|
|
|
2022-07-16 21:22:18 +00:00
|
|
|
- name: Build stitch tool
|
|
|
|
run: go build -v .
|
|
|
|
working-directory: ./bin/stitch
|
2022-07-16 15:29:26 +00:00
|
|
|
|
2022-07-16 21:22:18 +00:00
|
|
|
- name: Test stitch tool
|
|
|
|
run: go test -v .
|
|
|
|
working-directory: ./bin/stitch
|