chore: add support for nestjs v11 #216
Workflow file for this run
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: | |
types: [opened, synchronize, reopened] | |
env: | |
CI: true | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-CI | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
services: | |
kratos: | |
image: ghcr.io/getlarge/nestjs-ory-integration/kratos:latest | |
ports: | |
- '44330:4433' | |
- '44340:4434' | |
keto: | |
image: ghcr.io/getlarge/nestjs-ory-integration/keto:latest | |
ports: | |
- '44660:4466' | |
- '44670:4467' | |
hydra: | |
image: ghcr.io/getlarge/nestjs-ory-integration/hydra:latest | |
ports: | |
- '44440:4444' | |
- '44450:4445' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: 'npm' | |
- run: npm ci | |
- uses: nrwl/nx-set-shas@v4 | |
- uses: 8BitJonny/gh-get-current-pr@3.0.0 | |
id: current-pr | |
- if: steps.current-pr.outputs.number != 'null' && github.ref_name != 'main' | |
# This line is needed for nx affected to work when CI is running on a PR | |
run: git branch --track main origin/main | |
- run: npx nx format:check | |
- run: npx nx affected -t lint,typecheck,test,build --parallel=2 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: coverage | |
path: coverage | |
overwrite: true | |
retention-days: 1 | |
sonarcloud: | |
name: SonarCloud | |
runs-on: ubuntu-latest | |
needs: main | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- uses: martinbeentjes/npm-get-version-action@v1.3.1 | |
id: package-version | |
- uses: actions/download-artifact@v4 | |
with: | |
name: coverage | |
path: coverage | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarqube-scan-action@v4.2.1 | |
env: | |
SONAR_HOST_URL: https://sonarcloud.io | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
with: | |
args: > | |
-Dsonar.projectVersion=${{ steps.package-version.outputs.current-version}} |