Skip to content

Commit

Permalink
ci(sdk,app): upgrade github actions dependencies (trustbloc#722)
Browse files Browse the repository at this point in the history
ci(sdk,app): upgrade github actions dependencies + split action steps

Signed-off-by: Rolson Quadras <[email protected]>
  • Loading branch information
rolsonquadras authored Feb 12, 2024
1 parent 508a097 commit 849c996
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 24 deletions.
50 changes: 27 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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)
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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'
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 849c996

Please sign in to comment.