This commit is contained in:
cupcakearmy 2022-11-15 12:17:52 +01:00
parent 0a98481991
commit 41ed5c0e23
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F
2 changed files with 4 additions and 32 deletions

View File

@ -14,17 +14,13 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: "16"
# - uses: pnpm/action-setup@v2
# with:
# version: 7
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
with:
install: true
- name: Build
run: |
npm run test:docker
- name: Build docker image
run: npm run test:prepare
- name: Prepare
run: |
@ -38,26 +34,3 @@ jobs:
with:
name: test-results
path: test-results
# test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# with:
# node-version: "16"
# - uses: pnpm/action-setup@v2
# with:
# version: 7
# - name: Prepare
# run: |
# pnpm install
# pnpm run test:docker
# - name: Install Playwright
# run: npx playwright install --with-deps
# - name: Run your tests
# run: pnpm run test:run
# - name: Upload test results
# uses: actions/upload-artifact@v2
# with:
# name: test-results
# path: test-results

View File

@ -6,9 +6,8 @@
"dev": "run-p dev:*",
"test:run": "playwright test --project chrome firefox safari",
"test:local": "playwright test --project local",
"test:server": "pnpm --parallel run test:server",
"test:prepare": "pnpm --parallel run test:prepare",
"test:docker": "docker compose -f docker-compose.dev.yaml build"
"test:server": "docker compose -f docker-compose.dev.yaml up",
"test:prepare": "docker compose -f docker-compose.dev.yaml build"
},
"devDependencies": {
"@playwright/test": "^1.25.1",