diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 526855b..8b80c7a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -64,31 +64,33 @@ jobs: - name: Install dependencies run: go get . - - name: Setup - sqlite - working-directory: sqlite - run: ./setup.sh - - name: Test - sqlite flags 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 -v sse_test.go \ --driver=sqlite \ --display-name=testing-flags \ --live=true \ --listen-on-port=9999 \ - --sqlite-file="`pwd`/sqlite/db/test.db" \ + --sqlite-file="$file" \ 2>&1 | go-junit-report -iocopy -set-exit-code -out results-sqlite-flags-${{ matrix.go-version }}.xml - - name: Setup - sqlite (2) - working-directory: sqlite - run: ./setup.sh - - name: Test - sqlite env env: schemaexplorer_driver: sqlite schemaexplorer_live: false run: | - export schemaexplorer_sqlite_file="`pwd`/sqlite/db/test.db" + pushd . + cd sqlite + ./setup.sh + file="`pwd`/db/test.db" # relative path hack with pwd, otherwise not resolved. + export schemaexplorer_sqlite_file="$file" + popd go clean -testcache go test -v sse_test.go \ 2>&1 | go-junit-report -iocopy -set-exit-code -out results-sqlite-env-${{ matrix.go-version }}.xml