-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (73 loc) · 2.22 KB
/
integration-test.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Integration Test
on:
workflow_dispatch:
inputs:
pull_request:
push:
branches:
- main
env:
SPLITTER_LOG_LEVEL: info
jobs:
deploygate:
if: >
github.event_name != 'pull_request' ||
contains(fromJSON('["jmatsu", "dependabot[bot]"]'), github.actor)
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- run: go install
- name: simple
run: >
splitter
deploygate
--source-path ./examples/io.github.jmatsu.splitter.example.aab
--app-owner-name "${{ secrets.DEPLOYGATE_APP_OWNER_NAME }}"
--api-token "${{ secrets.DEPLOYGATE_API_TOKEN }}"
firebase-app-distribution:
if: >
github.event_name != 'pull_request' ||
contains(fromJSON('["jmatsu", "dependabot[bot]"]'), github.actor)
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- run: go install
- name: Create a credential file
run: |
mkdir -p .fixtures
cat<<EOF | base64 -d > .fixtures/google_credentials.json
${{ secrets.BASE64_ENCODED_GOOGLE_CREDENTIALS }}
EOF
- name: simple
run: >
splitter
firebase-app-distribution
--source-path ./examples/io.github.jmatsu.splitter.example.apk
--app-id "${{ secrets.FIREBASE_APP_ID }}"
--credentials .fixtures/google_credentials.json
- name: with group
run: >
splitter
firebase-app-distribution
--source-path ./examples/io.github.jmatsu.splitter.example.apk
--app-id "${{ secrets.FIREBASE_APP_ID }}"
--credentials .fixtures/google_credentials.json
--group-aliases "integration-test-1"
local:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- run: go install
- run: mkdir -p dist/
- name: simple
run: >
splitter
local
--source-path ./examples/io.github.jmatsu.splitter.example.apk
--destination-path ./dist/example.apk