diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8e80c9b..6b70699 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,18 +8,15 @@ on: jobs: build: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.x, 18.x, 20.x] - steps: - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js 16.x uses: actions/setup-node@v3 + with: + node-version: '16.x' - name: Install and Build run: | @@ -27,6 +24,23 @@ jobs: npm ci npm run build --if-present + test: + needs: build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: '16.x' + + - name: Install Dependencies + run: | + cd nest + npm ci + - name: Test Nest JS run: | cd nest