-
-
Notifications
You must be signed in to change notification settings - Fork 109
39 lines (33 loc) · 1.02 KB
/
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
name: CI
on:
pull_request:
jobs:
buildWithSubmodule:
name: Run Unit Test
runs-on: macos-latest
strategy:
matrix:
node: [20]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: main
- name: Checkout submodules
shell: bash
run: |
cd appium-device-farm
echo 'https://AppiumTestDistribution:${{secrets.CI}}@github.com' >~/.git-credentials
git config --global credential.helper store
git submodule update --init --recursive
- name: Checkout private tools
uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.CI }}
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1