Skip to content

Commit

Permalink
merge npm tests configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNino committed May 22, 2024
1 parent fc1c0be commit c740ba8
Showing 1 changed file with 6 additions and 57 deletions.
63 changes: 6 additions & 57 deletions .github/workflows/integrationTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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 }})
Expand Down

0 comments on commit c740ba8

Please sign in to comment.