Skip to content

Bump nyc from 15.1.0 to 17.1.0 (#529) #250

Bump nyc from 15.1.0 to 17.1.0 (#529)

Bump nyc from 15.1.0 to 17.1.0 (#529) #250

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
DEFAULT_NODE_VERSION: "18"
jobs:
setup:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["14", "18"]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
cache: npm
- name: Install dependencies
run: npm ci
- 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@v4
with:
distribution: temurin
java-version: 21
- name: Start Keycloak server
run: npm run server:start &
- name: Wait for Keycloak server
run: ./scripts/wait-for-server.sh
- name: Run tests
run: ./run-tests.sh