-
Notifications
You must be signed in to change notification settings - Fork 7
61 lines (55 loc) · 1.82 KB
/
java-ios.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Java iOS Tests
on:
push:
paths:
- 'java-ios-app/**'
- '.github/workflows/java-ios.yml'
branches:
- main
pull_request:
paths:
- 'java-ios-app/**'
- '.github/workflows/java-ios.yml'
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
java-ios-app:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install saucectl
uses: saucelabs/saucectl-run-action@v4
env:
GITHUB_TOKEN: ${{ github.token }}
with:
skip-run: true
- name: Pre-Upload App
id: upload
working-directory: ./wdio-ios-app/
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: |
APP_FILEID=$(saucectl storage upload ./app/SauceLabs-Demo-App.ipa -o json | jq -r '.id')
SIMULATOR_APP_FILEID=$(saucectl storage upload ./app/SauceLabs-Demo-App.Simulator.ipa -o json | jq -r '.id')
echo "APP_FILEID=${APP_FILEID}" >> $GITHUB_OUTPUT
echo "SIMULATOR_APP_FILEID=${SIMULATOR_APP_FILEID}" >> $GITHUB_OUTPUT
- name: Build example
uses: docker/[email protected]
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
with:
context: ./java-ios-app
file: ./java-ios-app/Dockerfile
build-args: |
APP_FILEID=${{ steps.upload.outputs.APP_FILEID }}
SIMULATOR_APP_FILEID=${{ steps.upload.outputs.SIMULATOR_APP_FILEID }}
push: false
secret-envs: |
"SAUCE_USERNAME=SAUCE_USERNAME"
"SAUCE_ACCESS_KEY=SAUCE_ACCESS_KEY"