This repository has been archived by the owner on Dec 11, 2024. It is now read-only.
Dat 371 #28
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: Validate pull request | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Run go test & Build for pull requests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21.3' | |
- name: Run mod tidy | |
run: go mod tidy | |
- name: Run test | |
run: go test ./... | |
- name: Build binary | |
run: cd cmd/blink && go build |