File tree Expand file tree Collapse file tree 2 files changed +42
-2
lines changed Expand file tree Collapse file tree 2 files changed +42
-2
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build mcad and run unit test and E2E tests
2+ name : MCAD-CI
3+ on :
4+ pull_request :
5+ branches :
6+ - ' main'
7+
8+ jobs :
9+ MCAD-CI :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : checkout code
14+ uses : actions/checkout@v3
15+ with :
16+ fetch-depth : 0
17+
18+ - name : Set up Go
19+ uses : actions/setup-go@v3
20+ with :
21+ go-version : 1.18.10
22+
23+ - name : Build
24+ run : |
25+ chmod +rwx Makefile
26+ make mcad-controller
27+
28+ - name : Run Unit tests
29+ run : make run-test
30+
31+ - name : Build Image
32+ run : |
33+ make images
34+
35+ - name : Run E2E tests
36+ run : |
37+ make run-e2e
38+
Original file line number Diff line number Diff line change 1+
2+ # Skip CI check when running as a pull request
3+ if : " $TRAVIS_PULL_REQUEST != false"
4+
15language : go
26
37sudo : required
@@ -25,8 +29,6 @@ script:
2529 - make run-test
2630 # Process 'make images' when NOT a pull request
2731 - ' if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then make images; fi'
28- # Process 'make images' when running as a pull request
29- - ' if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then unset quay_repository && make images; fi'
3032 # Process 'make push-images' when NOT a pull request
3133 - ' if [[ "$TRAVIS_PULL_REQUEST" == "false" && ! "$TRAVIS_BRANCH" =~ "^v[0-9]\.[0-9]+\.[0-9]+" ]]; then make push-images; fi'
3234 # Run the e2e and handle Travis condition where Travis fails on no output for 10 minutes. No output for 10 minutes
You can’t perform that action at this time.
0 commit comments