Skip to content

Commit

Permalink
Merge pull request #10 from DevSecOpsSamples/develop
Browse files Browse the repository at this point in the history
cdk build action
  • Loading branch information
engel80 authored Dec 22, 2022
2 parents 8f8a12e + 8425c0f commit 24d6ea2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 113 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,28 @@ on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
docker-build:
build-cdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Build CDK
run: npm install && npm run build

build-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: cd app && docker build . -t sample-rest-api:$(date +%s)

sonarqube:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
Expand All @@ -37,6 +49,6 @@ jobs:
restore-keys: ${{ runner.os }}-gradle
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew build sonarqube --info
run: ./gradlew build sonarqube --info
108 changes: 0 additions & 108 deletions apprunner-stack copy.ts

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"jest": "^26.4.2",
"ts-jest": "^26.2.0",
"ts-node": "^9.0.0",
"typescript": "~3.9.7"
"typescript": "^4.9.4"
},
"dependencies": {
"@types/js-yaml": "4.0.5",
Expand Down

0 comments on commit 24d6ea2

Please sign in to comment.