Separate web-checks from static-checks to improve build time (#14071)

* Moves web-checks to separate job
This commit is contained in:
Tejaswini Bandlamudi 2023-04-13 08:47:03 +05:30 committed by GitHub
parent 9ed8beca5e
commit f86ea5cbc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 4 deletions

View File

@ -139,14 +139,27 @@ jobs:
--levels ERROR \ --levels ERROR \
--scope JavaInspectionsScope --scope JavaInspectionsScope
web-checks:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: checkout branch
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: setup node - name: setup node
if: ${{ matrix.java == 'jdk8' }}
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 16.17.0 node-version: 16.17.0
- name: docs - name: docs
if: ${{ matrix.java == 'jdk8' }}
run: | run: |
(cd website && npm install) (cd website && npm install)
cd website cd website
@ -154,14 +167,12 @@ jobs:
npm run spellcheck npm run spellcheck
- name: web console - name: web console
if: ${{ matrix.java == 'jdk8' }}
run: | run: |
${MVN} test -pl 'web-console' ${MVN} test -pl 'web-console'
cd web-console cd web-console
{ for i in 1 2 3; do npm run codecov && break || sleep 15; done } { for i in 1 2 3; do npm run codecov && break || sleep 15; done }
- name: web console end-to-end test - name: web console end-to-end test
if: ${{ matrix.java == 'jdk8' }}
run: | run: |
./.github/scripts/setup_generate_license.sh ./.github/scripts/setup_generate_license.sh
web-console/script/druid build web-console/script/druid build