Add automatic data-attribute-to-Postgres sync #361
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: Integration Test | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - 'main' | |
| jobs: | |
| tests: | |
| name: "Integration testing" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: "Set up iWF environment" | |
| run: docker compose -f script/docker-compose.yml up -d | |
| - uses: actions/setup-java@v3 | |
| with: | |
| distribution: zulu | |
| java-version: 8 | |
| - uses: gradle/gradle-build-action@v2 | |
| with: | |
| gradle-version: 7.5 | |
| - name: "Wait for integ Postgres to be ready" | |
| run: | | |
| for i in $(seq 1 30); do | |
| if docker exec iwf-integ-postgres pg_isready -U iwf -d iwf_integ; then | |
| echo "postgres is ready"; exit 0 | |
| fi | |
| echo "waiting for postgres... ($i)"; sleep 2 | |
| done | |
| echo "postgres did not become ready in time" >&2; exit 1 | |
| - run: git submodule update --init --recursive && sleep 30 && gradle build | |
| - name: Dump docker logs | |
| if: always() | |
| uses: jwalton/gh-docker-logs@v2 | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v3 |