Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isolated Demo Tests #234

Merged
merged 36 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
2df467a
wip: isolated tests
stevensJourney Jul 21, 2024
a3d374e
isolated tests
stevensJourney Jul 22, 2024
9cdd436
update lockfile
stevensJourney Jul 22, 2024
64cbb2e
test
stevensJourney Jul 22, 2024
6f8740b
login
stevensJourney Jul 22, 2024
c6a5dd3
lowercase username
stevensJourney Jul 22, 2024
73db499
another test
stevensJourney Jul 22, 2024
4f69e19
allow all packages proxied
stevensJourney Jul 22, 2024
b987698
fix folder
stevensJourney Jul 22, 2024
22b6828
order
stevensJourney Jul 22, 2024
2d3b094
build:packages
stevensJourney Jul 22, 2024
aea4bd0
temp test
stevensJourney Jul 22, 2024
063ef04
registry cleanup
stevensJourney Jul 22, 2024
ba5bbaf
use pnpm version fetching
stevensJourney Jul 22, 2024
b4f5a9c
revert test
stevensJourney Jul 22, 2024
7afc7c2
add p-defer as dev dependency
stevensJourney Jul 22, 2024
3a0db91
update lockfile
stevensJourney Jul 22, 2024
fa122c3
update
stevensJourney Jul 22, 2024
c41da43
Merge branch 'main' into feat/isolated-tests
stevensJourney Jul 24, 2024
78359d3
angular demo: improve environment setup
stevensJourney Jul 24, 2024
63042d4
django app: add tsc build step
stevensJourney Jul 24, 2024
3692611
test build script
stevensJourney Jul 24, 2024
d1ec14c
update from master
stevensJourney Jul 25, 2024
3168f26
pnpm version
stevensJourney Jul 25, 2024
9161b23
limit test demos. Remove npmjs proxy
stevensJourney Jul 29, 2024
79396d8
Merge branch 'main' into feat/isolated-tests
stevensJourney Jul 29, 2024
3edabe9
only run if present
stevensJourney Jul 29, 2024
ff35ec0
remove capacitor demo
stevensJourney Jul 29, 2024
16f5553
remove more demos from tests
stevensJourney Jul 29, 2024
c979f70
add annotations
stevensJourney Jul 29, 2024
5497103
add summary
stevensJourney Jul 29, 2024
8ce973f
remove annotations
stevensJourney Jul 29, 2024
c5cc6b5
update from main
stevensJourney Jul 29, 2024
771ffb7
cleanup
stevensJourney Jul 29, 2024
0b33c63
cleanup
stevensJourney Jul 29, 2024
d1dffad
update lockfile
stevensJourney Jul 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .github/workflows/test-isolated.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Ensures packages and demos test correctly
name: Test Isolated Demos

on:
push:

jobs:
test:
name: Test Isolated Demos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 9
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install
run: pnpm install

- name: Build Packages
run: pnpm build:packages

- name: Start Verdaccio
run: |
npm install -g verdaccio
nohup verdaccio -c verdaccio-config.yaml &
sleep 10 # Give Verdaccio some time to start

- name: Prepare For Test Publish
run: npx tsx scripts/test-publish-helper.ts

- name: Registry login
run: npx npm-cli-login -u test -p test -e [email protected] -r http://localhost:4873

- name: Config Temporary Registry
run: echo "registry=http://localhost:4873" >> ~/.npmrc
stevensJourney marked this conversation as resolved.
Show resolved Hide resolved

# No actual auth is ever supplied to this action.
# It should never be able to publish to NPMJS
- name: Test publish
run: pnpm -r publish --registry=http://localhost:4873 --no-git-checks

- name: Test Demos
run: npx tsx scripts/isolated-demo-test.ts

2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"license": "Apache-2.0",
"peerDependencies": {
"@journeyapps/wa-sqlite": "~0.2.0",
"@powersync/common": "workspace:^1.13.0"
"@powersync/common": "workspace:^"
},
"dependencies": {
"@powersync/common": "workspace:*",
Expand Down
Loading
Loading