chore: fix race issue in pipeline manager test & added action to run tests on pull request #1
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: Tests on Pull Request | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
test: | |
name: Run Go Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: ['1.21'] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Run tests | |
run: go test -v ./... |