Skip to content

Commit

Permalink
Fix CI build (#524)
Browse files Browse the repository at this point in the history
Closes #522

Signed-off-by: mposolda <[email protected]>
Signed-off-by: Jon Koops <[email protected]>
Co-authored-by: Jon Koops <[email protected]>
  • Loading branch information
mposolda and jonkoops authored Dec 13, 2024
1 parent cee3608 commit 63dc614
Show file tree
Hide file tree
Showing 4 changed files with 792 additions and 682 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,37 @@ on:
pull_request:
branches: [main]
env:
DEFAULT_NODE_VERSION: "16"
DEFAULT_NODE_VERSION: "18"
jobs:
setup:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["14", "16"]
node-version: ["14", "18"]
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
cache: npm

- name: Cache Node modules
id: cache-node-modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci

# TODO: Split the linting into a separate job.
- name: Run lint task
# Only run this step for the default Node version.
if: matrix.node-version == env.DEFAULT_NODE_VERSION
run: npm run lint

- name: Set up Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
java-version: 21

- name: Start Keycloak server
run: npm run server:start &
Expand Down
Loading

0 comments on commit 63dc614

Please sign in to comment.