Skip to content

Commit

Permalink
ci adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Sep 23, 2023
1 parent df6201d commit ccf6634
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 8 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/test-integration-jwt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ jobs:
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
timeout-minutes: 40
defaults:
run:
working-directory: ${{ github.workspace }}/app
strategy:
fail-fast: false
matrix:
node_version: [16.14.0]
node_version: [18]
os: [ubuntu-20.04]
app-type:
- jwt-with-angular-app
Expand Down Expand Up @@ -58,9 +61,15 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
path: jhipster-dotnetcore
fetch-depth: 2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Create app dir
working-directory: ${{ github.workspace }}
run: mkdir app
- name: 'install required npm version'
run: npm install -g npm@$(node -e "console.log(require('./generators/generator-dotnetcore-constants.cjs').NPM_VERSION);")
- uses: joschi/setup-jdk@v2
Expand All @@ -73,7 +82,8 @@ jobs:
- name: git history
run: git --no-pager log -n 10 --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) <%an>%Creset' --abbrev-commit
- name: PREPARE jhipster env
run: sudo ./test-integration/scripts/00-install-all-jhipster.sh
working-directory: ${{ github.workspace }}/jhipster-dotnetcore
run: npm ci && npm link
- name: 'GENERATE JHipster.NET app'
run: ./test-integration/scripts/02-generate-app-sample.sh $JHI_APP
- name: 'INSTALL AND BUILD DEPENDENCIES of generated app'
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/test-integration-microservice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ jobs:
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
timeout-minutes: 40
defaults:
run:
working-directory: ${{ github.workspace }}/app
strategy:
fail-fast: false
matrix:
node_version: [16.14.0]
node_version: [18]
os: [ubuntu-20.04]
app-type:
- microservice-app
Expand All @@ -31,9 +34,15 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
path: jhipster-dotnetcore
fetch-depth: 2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Create app dir
working-directory: ${{ github.workspace }}
run: mkdir app
- name: 'install required npm version'
run: npm install -g npm@$(node -e "console.log(require('./generators/generator-dotnetcore-constants.cjs').NPM_VERSION);")
- uses: actions/setup-dotnet@v3
Expand All @@ -42,7 +51,8 @@ jobs:
- name: git history
run: git --no-pager log -n 10 --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) <%an>%Creset' --abbrev-commit
- name: PREPARE jhipster env
run: sudo ./test-integration/scripts/00-install-all-jhipster.sh
working-directory: ${{ github.workspace }}/jhipster-dotnetcore
run: npm ci && npm link
- name: 'GENERATE JHipster.NET app'
run: ./test-integration/scripts/02-generate-app-sample.sh $JHI_APP
- name: 'INSTALL AND BUILD DEPENDENCIES of generated app'
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/test-integration-oauth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ jobs:
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
timeout-minutes: 40
defaults:
run:
working-directory: ${{ github.workspace }}/app
strategy:
fail-fast: false
matrix:
node_version: [16.14.0]
node_version: [18]
os: [ubuntu-20.04]
app-type:
- oauth-with-angular-app
Expand Down Expand Up @@ -55,9 +58,15 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
path: jhipster-dotnetcore
fetch-depth: 2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Create app dir
working-directory: ${{ github.workspace }}
run: mkdir app
- name: 'install required npm version'
run: npm install -g npm@$(node -e "console.log(require('./generators/generator-dotnetcore-constants.cjs').NPM_VERSION);")
- uses: actions/setup-dotnet@v3
Expand All @@ -66,7 +75,8 @@ jobs:
- name: git history
run: git --no-pager log -n 10 --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) <%an>%Creset' --abbrev-commit
- name: PREPARE jhipster env
run: sudo ./test-integration/scripts/00-install-all-jhipster.sh
working-directory: ${{ github.workspace }}/jhipster-dotnetcore
run: npm ci && npm link
- name: 'GENERATE JHipster.NET app'
run: ./test-integration/scripts/02-generate-app-sample.sh $JHI_APP $JHI_ARG
- name: 'INSTALL AND BUILD DEPENDENCIES of generated app'
Expand Down
2 changes: 1 addition & 1 deletion test-integration/scripts/02-generate-app-sample.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ echo "*** run generation app with dotnetcore blueprint for : "$APP_FOLDER

runOptions="--blueprints dotnetcore --skip-checks --force --no-insight --skip-install"

jhipster $runOptions
jhipster-dotnetcore $runOptions

echo "*** check if the generation is ok for csharp classes :"

Expand Down
2 changes: 1 addition & 1 deletion test-integration/scripts/04-generate-entities-sample.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [[ "$2" = "import-jdl" ]]; then
else
runOptions="import-jdl ../jdl-default/app.jdl $runOptions"
fi
jhipster $runOptions
jhipster-dotnetcore $runOptions

# copy files required for testing automatic service class/interface registration on dependency injection container
if [[ -n $(find src/JhipsterSampleApplication.Domain.Services -type f -name "*CountryService.cs") ]]; then
Expand Down

0 comments on commit ccf6634

Please sign in to comment.