File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+ on :
3+ push :
4+ branches :
5+ - master
6+ - develop
7+ pull_request :
8+ types : [opened, synchronize, reopened]
9+ jobs :
10+ build :
11+ name : Build
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v2
15+ with :
16+ fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
17+ - name : Set up JDK 11
18+ uses : actions/setup-java@v1
19+ with :
20+ java-version : 11
21+ - name : Cache SonarCloud packages
22+ uses : actions/cache@v1
23+ with :
24+ path : ~/.sonar/cache
25+ key : ${{ runner.os }}-sonar
26+ restore-keys : ${{ runner.os }}-sonar
27+ - name : Cache Gradle packages
28+ uses : actions/cache@v1
29+ with :
30+ path : ~/.gradle/caches
31+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
32+ restore-keys : ${{ runner.os }}-gradle
33+ - name : Build and analyze
34+ env :
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
36+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
37+ run : ./gradlew build sonarqube --info
Original file line number Diff line number Diff line change 1+ echo " [1/4] destroy ecs-restapi-service"
2+ cd ecs-restapi-service
3+ cdk destroy
4+
5+ echo " [2/4] destroy ecs-ec2-cluster"
6+ cd ../ecs-ec2-cluster
7+ cdk destroy
8+
9+ echo " [3/4] destroy ecs-iam-role"
10+ cd ../ecs-iam-role
11+ cdk destroy
12+
13+ echo " [4/4] destroy vpc"
14+ cd ../vpc
15+ cdk destroy
16+
17+ find . -name " cdk.context.json" -exec rm -f {} \;
You can’t perform that action at this time.
0 commit comments