11name : CI
22
33on :
4- pull_request_target :
4+ pull_request :
55 branches :
66 - ' main'
77 push :
@@ -18,41 +18,37 @@ jobs:
1818 - name : install sourcekitten
1919 run : brew install sourcekitten
2020 - uses : actions/checkout@v3
21- with :
22- ref : ${{ github.event.pull_request.head.ref }}
23- repository : ${{ github.event.pull_request.head.repo.full_name }}
2421 - name : Run public API diff
2522 run : scripts/api_diff.sh ${{ matrix.module }}
2623
27- Tests :
24+ Unit- Tests :
2825 runs-on : macOS-latest
2926 steps :
30- - uses : actions/checkout@v3
31- with :
32- ref : ${{ github.event.pull_request.head.ref }}
33- repository : ${{ github.event.pull_request.head.repo.full_name }}
34- - name : Build and Test
35- env :
36- CLIENT_TOKEN : ${{ secrets.CONFIDENCE_CLIENT_TOKEN }}
37- run : scripts/run_tests.sh $CLIENT_TOKEN
27+ - uses : actions/checkout@v3
28+ - name : Build and Run Unit Tests
29+ run : scripts/run_tests.sh
30+
31+ Integration-Tests :
32+ runs-on : macOS-latest
33+ if : ${{ secrets.CONFIDENCE_CLIENT_TOKEN != '' }}
34+ steps :
35+ - uses : actions/checkout@v3
36+ - name : Build and Run Integration Tests
37+ env :
38+ CLIENT_TOKEN : ${{ secrets.CONFIDENCE_CLIENT_TOKEN }}
39+ run : scripts/run_integration_tests.sh $CLIENT_TOKEN
3840
3941 DemoApp :
4042 runs-on : macOS-latest
4143 steps :
4244 - uses : actions/checkout@v3
43- with :
44- ref : ${{ github.event.pull_request.head.ref }}
45- repository : ${{ github.event.pull_request.head.repo.full_name }}
4645 - name : Build Demo App
4746 run : ConfidenceDemoApp/scripts/build.sh
4847
4948 SwiftLint :
5049 runs-on : ubuntu-latest
5150 steps :
5251 - uses : actions/checkout@v3
53- with :
54- ref : ${{ github.event.pull_request.head.ref }}
55- repository : ${{ github.event.pull_request.head.repo.full_name }}
5652 - name : GitHub Action for SwiftLint
5753 uses :
norio-nomura/[email protected] 5854 with :
0 commit comments