Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct .npmrc for newer versions of NPM #787

Open
wants to merge 12 commits into
base: npm-8.19
Choose a base branch
from
Prev Previous commit
Next Next commit
merge npm tests configuration
  • Loading branch information
RobiNino committed May 22, 2024
commit c740ba8246ab73d70898a3bf1654e26097bd10d7
63 changes: 6 additions & 57 deletions .github/workflows/integrationTests.yml
Original file line number Diff line number Diff line change
@@ -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 }})