-
Notifications
You must be signed in to change notification settings - Fork 37
38 lines (30 loc) · 1.18 KB
/
main.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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
LIST_REPO_E2E_TEST: ('lexicon','lexicon-kodefox') # list of repo name which want run e2e test
jobs:
# get-env job is run to get env using output because we cannot use env context outside steps if: env.LIST_REPO_E2E_TEST
# https://github.com/actions/runner/issues/2372#issuecomment-1518528105
get-env:
runs-on: ubuntu-latest
outputs:
LIST_REPO: ${{ env.LIST_REPO_E2E_TEST }}
steps:
- run: echo "null"
path-filters:
needs: [get-env]
if: contains(needs.get-env.outputs.LIST_REPO,github.event.repository.name)
uses: ./.github/workflows/path-filters.yml
test:
uses: ./.github/workflows/test.yml
# Disable Detox tests because they require a connection with a Build Jet account.
# To enable these tests, ensure your repository is connected to Build Jet: https://buildjet.com/for-github-actions
# e2e-test:
# needs: [path-filters, test]
# if: needs.path-filters.outputs.frontendSrc-changes == 'true' && contains(needs.get-env.outputs.LIST_REPO,github.event.repository.name)
# uses: ./.github/workflows/e2e-test-android.yml
# secrets: inherit