Bump nyc from 15.1.0 to 17.1.0 (#529) #250
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |