diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a341263..0495462d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps: - - uses: amannn/action-semantic-pull-request@v4 + - uses: amannn/action-semantic-pull-request@v5 with: requireScope: true scopes: | @@ -35,9 +35,9 @@ jobs: runs-on: ubuntu-22.04 timeout-minutes: 10 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - name: Run checks @@ -53,9 +53,9 @@ jobs: runs-on: ubuntu-22.04 timeout-minutes: 10 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - name: Run unit test @@ -70,9 +70,9 @@ jobs: runs-on: ubuntu-20.04 timeout-minutes: 30 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - name: Run Integration tests @@ -90,9 +90,9 @@ jobs: runs-on: macos-12 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - name: Generate and copy iOS Binding @@ -109,7 +109,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOPATH: /Users/runner/work/wallet-sdk/go - - name: Setup env for integration test + - name: Install and start docker run: | echo '127.0.0.1 file-server.trustbloc.local' | sudo tee -a /etc/hosts echo '127.0.0.1 did-resolver.trustbloc.local' | sudo tee -a /etc/hosts @@ -118,9 +118,12 @@ jobs: echo '127.0.0.1 cognito-mock.trustbloc.local' | sudo tee -a /etc/hosts brew install docker docker-compose colima start - export PATH=$PATH:$GOPATH/bin - echo $PATH - make prepare-integration-test-flutter + - name: Build docker images for test servers + run: | + make build-integration-cli mock-login-consent-docker mock-trust-registry-docker build-krakend-plugin generate-test-keys + - name: Setup env for integration test + run: | + make start-integration-env-flutter - name: Setup Flutter SDK uses: flutter-actions/setup-flutter@v2 with: @@ -129,7 +132,7 @@ jobs: - name: Install flutter app dependencies run: make install-flutter-dependencies - name: Run iOS Simulator - uses: futureware-tech/simulator-action@v2 + uses: futureware-tech/simulator-action@v3 with: model: 'iPhone 14' - name: Remove AppIcon contents file (Simulator build fails with this file) @@ -143,11 +146,11 @@ jobs: runs-on: macOS-12 steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Gradle cache - uses: gradle/gradle-build-action@v2.4.2 + uses: gradle/gradle-build-action@v3 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - name: Generate and copy Android Binding @@ -164,7 +167,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOPATH: /Users/runner/work/wallet-sdk/go - - name: Setup env for integration test + - name: Install and start docker run: | echo '127.0.0.1 file-server.trustbloc.local' | sudo tee -a /etc/hosts echo '127.0.0.1 did-resolver.trustbloc.local' | sudo tee -a /etc/hosts @@ -173,11 +176,12 @@ jobs: echo '127.0.0.1 cognito-mock.trustbloc.local' | sudo tee -a /etc/hosts brew install docker docker-compose colima start - export PATH=$PATH:$GOPATH/bin - echo $PATH - go install golang.org/x/mobile/cmd/gomobile@latest - gomobile init - make prepare-integration-test-flutter + - name: Build docker images for test servers + run: | + make build-integration-cli mock-login-consent-docker mock-trust-registry-docker build-krakend-plugin generate-test-keys + - name: Setup env for integration test + run: | + make start-integration-env-flutter - uses: actions/setup-java@v3 with: distribution: 'zulu' diff --git a/Makefile b/Makefile index 11dcd6d9..de267c3e 100644 --- a/Makefile +++ b/Makefile @@ -113,7 +113,10 @@ integration-test-wasm: build-integration-cli mock-login-consent-docker mock-trus @scripts/wasm_test.sh .PHONY: prepare-integration-test-flutter -prepare-integration-test-flutter: build-integration-cli mock-login-consent-docker mock-trust-registry-docker build-krakend-plugin generate-test-keys +prepare-integration-test-flutter: build-integration-cli mock-login-consent-docker mock-trust-registry-docker build-krakend-plugin generate-test-keys start-integration-env-flutter + +.PHONY: start-integration-env-flutter +start-integration-env-flutter: @scripts/prepare_integration_test_flutter.sh .PHONY: integration-test-flutter