Address code duplication in Access API tests and error handling #404
Workflow file for this run
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: Build SDK Examples Pull Request | |
on: pull_request | |
jobs: | |
build: | |
name: Build pull request | |
runs-on: ubuntu-latest | |
env: | |
JAVA_OPTS: -Xmx2g -Dorg.gradle.daemon=false | |
#services: | |
# flow-emulator: | |
# image: gcr.io/flow-container-registry/emulator | |
# env: | |
# FLOW_VERBOSE: true | |
# FLOW_PORT: 3569 | |
# FLOW_INTERVAL: 5s | |
# FLOW_PERSIST: false | |
# ports: | |
# - 3569:3569 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Java | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '21.0.1' | |
java-package: jdk | |
distribution: 'temurin' | |
architecture: 'x64' | |
- name: Install flow emulator | |
run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" | |
- name: Make gradle executable | |
run: chmod +x ./gradlew | |
- name: Build | |
id: build | |
run: ./gradlew --warning-mode all check build -x test -x integrationTest | |
- name: Run Java Example Unit Tests | |
id: unit_test | |
run: ./gradlew --no-daemon --max-workers=2 --warning-mode=all :java-example:test -i --continue --stacktrace | |
- name: Run Kotlin Example Unit Tests | |
id: unit_test_2 | |
run: ./gradlew --no-daemon --max-workers=2 --warning-mode=all :kotlin-example:test -i --continue --stacktrace | |
- name: Publish SDK Examples Unit Test Results | |
uses: EnricoMi/[email protected] | |
if: always() | |
with: | |
check_name: "SDK Examples Unit Test Results" | |
files: "**/test-results/test/**/*.xml" | |
seconds_between_github_writes: 5 | |
secondary_rate_limit_wait_seconds: 120 | |
- name: Run Common Integration Tests | |
run: | | |
export PATH="$HOME/.local/bin:$PATH" | |
./gradlew --no-daemon --max-workers=2 --warning-mode=all :common:integrationTest --continue --stacktrace | |
- name: Publish Common Integration Test Results | |
uses: EnricoMi/[email protected] | |
if: always() | |
with: | |
check_name: "Common Integration Test Results" | |
files: "**/test-results/integrationTest/**/*.xml" | |
seconds_between_github_writes: 5 | |
secondary_rate_limit_wait_seconds: 120 |