Skip to content

Commit

Permalink
Start up verdaccio for e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
ericanderson committed Nov 21, 2024
1 parent 764e422 commit e798a57
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 61 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,48 @@ jobs:
- name: Verify nothing added
run: u="$(git ls-files --others --exclude-standard)" && test -z "$u"

e2e:
name: E2E Tests
timeout-minutes: 15
runs-on: ubuntu-latest

services:
verdaccio:
image: verdaccio/verdaccio
# options: >-
# --health-cmd "curl -f http://localhost:4873/"
# --health-interval 5s

ports:
- 4873:4873

steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2

- uses: pnpm/action-setup@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Transpile # the build step will catch lint and co errors
run: pnpm exec turbo transpile

- name: Setup Verdaccio
run: |
echo '//localhost:4873/:_authToken="dummy-auth-token"' > .npmrc
npm config set registry http://localhost:4873
- name: Faux Release
run: pnpm exec changeset version

- name: Faux Publish
run: pnpm publish -r
96 changes: 35 additions & 61 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e798a57

Please sign in to comment.