ci: Try running sqlite test #19
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: Build+Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ '1.21.6' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install dependencies | |
run: go get . | |
- name: Test with Go | |
run: | | |
pushd . | |
cd sqlite | |
./setup.sh | |
file="`pwd`/db/test.db" # relative path hack with pwd, otherwise not resolved. | |
popd | |
go clean -testcache | |
go test -json sse_test.go \ | |
--driver=sqlite \ | |
--display-name=testing-flags \ | |
--live=true \ | |
--listen-on-port=9999 \ | |
--sqlite-file="$file" \ | |
> TestResults-${{ matrix.go-version }}.json | |
- name: Upload Go test results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Go-results-${{ matrix.go-version }} | |
path: TestResults-${{ matrix.go-version }}.json |