diff --git a/.github/workflows/integrationTests.yml b/.github/workflows/integrationTests.yml index c6e171f9b..29eaf8409 100644 --- a/.github/workflows/integrationTests.yml +++ b/.github/workflows/integrationTests.yml @@ -272,11 +272,13 @@ jobs: npm: needs: Pretest - name: npm (${{ matrix.os }}) < 8.19 + name: npm (${{ matrix.os }}) - node ${{ matrix.node }} strategy: fail-fast: false matrix: os: [ ubuntu-latest, macos-13, windows-latest ] + # Testing both npm < 8.19 and npm >= 8.19 + node: [ 15, 20 ] runs-on: ${{ matrix.os }} steps: - name: Checkout code @@ -287,9 +289,11 @@ jobs: - name: Install npm uses: actions/setup-node@v3 with: - node-version: "15" + node-version: matrix.node + - name: Config list run: npm config ls -l + - name: Install Java uses: actions/setup-java@v3 with: @@ -327,61 +331,6 @@ jobs: # We use localhost because npm does not support authenticating with registries started with 127.0.0.1 BITESTS_PLATFORM_URL: http://localhost:8081 - npm_9: - needs: Pretest - name: npm (${{ matrix.os }}) >= 8.19 - strategy: - fail-fast: false - matrix: - os: [ ubuntu-latest, macos-latest, windows-latest ] - runs-on: ${{ matrix.os }} - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} - - - name: Install npm - uses: actions/setup-node@v3 - with: - node-version: "20" - - name: Config list - run: npm config ls -l - - name: Install Java - uses: actions/setup-java@v3 - with: - java-version: "8" - distribution: "temurin" - - name: Install Go - uses: actions/setup-go@v3 - with: - go-version: 1.19.x - - - name: Cache local Maven repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - - name: Setup Artifactory - run: | - go install github.com/jfrog/jfrog-testing-infra/local-rt-setup@latest - ~/go/bin/local-rt-setup - env: - RTLIC: ${{secrets.RTLIC}} - GOPROXY: direct - - # Run tests - - name: Run Tests - uses: gradle/gradle-build-action@v2 - with: - arguments: clean build-info-extractor-npm:test - env: - # We use localhost because npm does not support authenticating with registries started with 127.0.0.1 - BITESTS_PLATFORM_URL: http://localhost:8081 - NuGet: needs: Pretest name: NuGet (${{ matrix.os }})