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

This file was deleted.

21 changes: 20 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ jobs:
run: npm run test:integration

e2e-test:
runs-on: ${{ matrix.os }}-latest
runs-on: ubuntu-latest
container: ${{ matrix.os }}:latest
services:
verdaccio:
image: verdaccio/verdaccio:5
ports:
- 4873:4873
strategy:
matrix:
os:
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 68dbc9c

Please sign in to comment.