diff --git a/.github/workflows/node.js.yml b/.github/workflows/build-nestjs.yml similarity index 57% rename from .github/workflows/node.js.yml rename to .github/workflows/build-nestjs.yml index 762fc6d..9d7c920 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/build-nestjs.yml @@ -5,13 +5,12 @@ name: Node.js CI on: push: - branches: [ "master" ] + branches: ['master'] pull_request: - branches: [ "master" ] + branches: ['master'] jobs: build: - runs-on: ubuntu-latest strategy: @@ -20,13 +19,13 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - run: npm run test - - run: npm run test:e2e + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci --legacy-peer-deps + - run: npm run build --if-present + - run: npm run test + - run: npm run test:e2e