Skip to content

Commit

Permalink
combine all java and combine all typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
TomConner committed Jul 21, 2023
1 parent 2781dab commit 7023028
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/java-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
name: Java CI

on:
push:
branches: [ development ]
paths-ignore: [ '*.md']
pull_request:
branches: [ '**' ]
merge_group:
# push:
# branches: [ development ]
# paths-ignore: [ '*.md']
# pull_request:
# branches: [ '**' ]
# merge_group:
workflow_dispatch:

jobs:
build:
Expand Down Expand Up @@ -56,7 +57,6 @@ jobs:
arguments: build --info # if you need to see test failure full stacktraces, change this to `build --info`
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

# Need to uncomment these in follow up PR, The new Trivy and Tag workflows need to exist on the development branch
# before the following steps will work
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,29 @@ jobs:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

sonar-api-admin:
name: SonarCloud api-admin
sonar-java:
name: SonarCloud Java
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Scan api-admin via gradle
run: ./gradlew --build-cache :api-admin:compileJava :api-admin:sonar
- name: Scan via gradle
run: ./gradlew --build-cache compileJava sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}


sonar-ui-admin:
name: SonarCloud ui-admin
sonar-typescript:
name: SonarCloud TypeScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Scan ui-admin via sonarcloud-github-action
- name: Scan via sonarcloud-github-action
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: ui-admin/
13 changes: 7 additions & 6 deletions .github/workflows/ui-ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: UI CI

on:
push:
branches: [ development ]
paths-ignore: [ '*.md']
pull_request:
branches: [ '**' ]
merge_group:
# push:
# branches: [ development ]
# paths-ignore: [ '*.md']
# pull_request:
# branches: [ '**' ]
# merge_group:
workflow_dispatch:

jobs:
build:
Expand Down

0 comments on commit 7023028

Please sign in to comment.