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 6f88175
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/e2e-verdaccio.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:

e2e-test:
runs-on: ${{ matrix.os }}-latest
services:
verdaccio:
image: verdaccio/verdaccio:5
ports:
- 4873:4873
strategy:
matrix:
os:
Expand All @@ -50,6 +55,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 6f88175

Please sign in to comment.