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:
|
|
|
|
go-version: ^1.18
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
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
|