SQL client uses test containers + JDBC URL added to ProgramEnvironment #1762
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: CI | |
on: | |
pull_request: | |
paths: | |
- .sbtopts | |
- build.sbt | |
- project/** | |
- deps/** | |
- utils/** | |
- client/** | |
- snapi-client/** | |
- snapi-frontend/** | |
- parsers/** | |
- snapi-truffle/** | |
- python-client/** | |
- sql-client/** | |
- .github/workflows/ci.yaml | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
env: | |
SBT_OPTS : -Dsbt.log.noformat=true -Xss2m -Xms1g | |
GITHUB_TOKEN: ${{ secrets.READ_PACKAGES }} | |
jobs: | |
code-checks: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- run: ./ci/check headerCheckAll | |
- run: ./ci/check scalafmtCheckAll | |
- run: ./ci/check javafmtCheckAll | |
- run: ./ci/check doc | |
tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
component: | |
- snapi-frontend | |
- snapi-client | |
- sql-client | |
- python-client | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oNaiPs/secrets-to-env-action@v1.5 | |
with: | |
secrets: ${{ toJSON(secrets) }} | |
- run: env > .env | |
- run: ./ci/test ${{ matrix.component }} | |
- uses: mikepenz/action-junit-report@v4 | |
if: success() || failure() | |
with: | |
annotate_only: true | |
check_name: JUnit ${{ matrix.component }} report | |
report_paths: ${{ matrix.component }}/target/**/*.xml | |
detailed_summary: true | |
require_tests: true |