NOBUG: Fix dependencies order for keycloak service. (#2) #14
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: Cache, lint and test | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize, ready_for_review, converted_to_draft] | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
install: | |
name: Install | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version: ${{ matrix.node-version }} | |
- run: yarn install --silent --frozen-lockfile | |
strategy: | |
matrix: | |
node-version: [20.x] | |
lint: | |
name: Lint | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version: ${{ matrix.node-version }} | |
- run: yarn install --silent --frozen-lockfile | |
- run: yarn lint | |
strategy: | |
matrix: | |
node-version: [20.x] | |
test: | |
name: Test | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
### Install if no cache exists ### | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version: ${{ matrix.node-version }} | |
- run: yarn install --silent --frozen-lockfile | |
- run: yarn test-ci | |
strategy: | |
matrix: | |
node-version: [20.x] |