Skip to content

Commit

Permalink
ci: add verdaccio setup to e2e pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ComradeVanti committed Oct 18, 2024
1 parent c2c42a2 commit 2e7ada0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 40 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/e2e-verdaccio.yml

This file was deleted.

27 changes: 23 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,18 @@ jobs:
run: npm run test:integration

e2e-test:
runs-on: ${{ matrix.os }}-latest
runs-on: ubuntu-latest
container: ${{ matrix.container }}
services:
verdaccio:
image: verdaccio/verdaccio:5
ports:
- 4873:4873
strategy:
matrix:
os:
- ubuntu
- windows
container:
- ubuntu:latest
- mcr.microsoft.com/windows/nanoserver:ltsc2022
node:
- "18.x" # Oldest supported lts
- "20.x" # Newest lts
Expand All @@ -50,6 +56,19 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Add test user
run: npx npm-cli-login -u tester -p 123456 -e tester@example.com -r http://localhost:4873
- name: Add test packages
run: |
root_dir=$(pwd)
for dir in .github/verdaccio/*/; do
if [ -f "$dir/package.json" ]; then
echo "Publishing $dir"
cd "$dir"
npm publish --registry http://localhost:4873
cd "$root_dir"
fi
done
- name: Install dependencies
run: npm ci
- name: Build
Expand Down

0 comments on commit 2e7ada0

Please sign in to comment.