Added clickhouse binding #9
This file contains hidden or 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: Test oracle | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - "oracle/**" | |
| - "tests/**" | |
| - ".github/workflows/test-oracle.yml" | |
| pull_request: | |
| paths: | |
| - "oracle/**" | |
| - "tests/**" | |
| - ".github/workflows/test-oracle.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout bindings | |
| uses: actions/checkout@v4 | |
| with: | |
| path: bindings | |
| persist-credentials: false | |
| # The openrun checkout builds the server binary the integration tests | |
| # drive; the pkg/binding SDK resolves from the published module. | |
| - name: Checkout openrun | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: openrundev/openrun | |
| path: openrun | |
| persist-credentials: false | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: bindings/oracle/go.mod | |
| cache-dependency-path: bindings/oracle/go.sum | |
| - name: Unit tests | |
| working-directory: bindings/oracle | |
| run: | | |
| go vet ./... | |
| go test ./... | |
| - name: Install commander | |
| run: go install github.com/commander-cli/commander/v2/cmd/commander@v2.5.0 | |
| - name: Integration tests (RPC layer) | |
| working-directory: bindings | |
| run: OPENRUN_SRC="$GITHUB_WORKSPACE/openrun" ./tests/run_int_tests.sh oracle |