Skip to content

Commit

Permalink
chore: fix verdaccio integration test (#1693)
Browse files Browse the repository at this point in the history
  • Loading branch information
timofei-iatsenko authored Jun 7, 2023
1 parent cf16165 commit 6034c3a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 62 deletions.
7 changes: 7 additions & 0 deletions .github/verdaccio/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
npmScopes:
lingui:
npmRegistryServer: http://0.0.0.0:4873/
npmPublishRegistry: http://0.0.0.0:4873/

unsafeHttpWhitelist:
- 0.0.0.0
2 changes: 1 addition & 1 deletion .github/verdaccio/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ packages:
middlewares:
audit:
enabled: true
logs:
log:
- {type: stdout, format: pretty, level: trace}
15 changes: 12 additions & 3 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
always-auth: true
node-version: 16
cache: 'yarn'
scope: '@lingui'

- name: Install dependencies if needed
run: yarn install
Expand All @@ -33,6 +32,16 @@ jobs:
run: |
git switch -c "pull-request"
npm i -g {verdaccio,verdaccio-auth-memory,verdaccio-memory}
nohup verdaccio --config .github/verdaccio/config.yaml &>mktemp &
nohup verdaccio --config .github/verdaccio/config.yaml &>verdaccio.log &
yarn verdaccio:release
yarn verdaccio:integration
- name: Run tests in create-react-app
run: |
cp ./.github/verdaccio/.yarnrc.yml ./examples/create-react-app/.yarnrc.yml
cd ./examples/create-react-app
yarn up "@lingui/*"
yarn test:ci
- name: Print Verdaccio Log
if: ${{ failure() }}
run: cat ./verdaccio.log
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"prettier": "prettier --write '**/*.{ts,tsx,js,jsx}'",
"prettier:check": "prettier --check '**/*.{ts,tsx,js,jsx}'",
"verdaccio:release": "node -r @swc-node/register ./scripts/verdaccio-release.ts",
"verdaccio:integration": "node -r @swc-node/register ./scripts/verdaccio-integration.ts",
"release:build": "yarn workspaces foreach --topological-dev -pv run build",
"release:test": "yarn release:build && yarn test:all",
"version": "yarn install --no-immutable && git stage yarn.lock",
Expand Down
57 changes: 0 additions & 57 deletions scripts/verdaccio-integration.ts

This file was deleted.

1 comment on commit 6034c3a

@vercel
Copy link

@vercel vercel bot commented on 6034c3a Jun 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.