diff --git a/.github/workflows/pull-request-validation.yml b/.github/workflows/pull-request-validation.yml index 22ea61b100..d2c60400d6 100644 --- a/.github/workflows/pull-request-validation.yml +++ b/.github/workflows/pull-request-validation.yml @@ -76,8 +76,8 @@ jobs: path: docker.zip retention-days: 1 - unit-test: - name: Unit test + lint: + name: Lint runs-on: ubuntu-latest steps: @@ -95,8 +95,28 @@ jobs: - run: npm clean-install + - run: npm run bootstrap + + - run: npm run precommit --if-present + + unit-test: + name: Unit test + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js ${{ env.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.node-version }} + cache: npm + + - if: "env.skip-secure-feed != 'true'" + name: Enable secure feed + run: npx https://aka.ms/EnableSecureFeed + - run: npm clean-install - working-directory: ./packages/test/harness/ - run: npm run bootstrap