Skip to content

Commit

Permalink
ci: Refactor - Use working-directory for sqlite test
Browse files Browse the repository at this point in the history
  • Loading branch information
timabell committed Jan 30, 2024
1 parent e1ac76b commit 639a80b
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,33 +63,31 @@ 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 sse_test.go \
--driver=sqlite \
--display-name=testing-flags \
--live=true \
--listen-on-port=9999 \
--sqlite-file="$file" \
--sqlite-file="`pwd`/sqlite/db/test.db" \
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: |
pushd .
cd sqlite
./setup.sh
file="`pwd`/db/test.db" # relative path hack with pwd, otherwise not resolved.
export schemaexplorer_sqlite_file="$file"
popd
export schemaexplorer_sqlite_file="`pwd`/sqlite/db/test.db"
go clean -testcache
go test sse_test.go \
2>&1 | go-junit-report -iocopy -set-exit-code -out results-sqlite-env-${{ matrix.go-version }}.xml
Expand Down

0 comments on commit 639a80b

Please sign in to comment.