Skip to content

Commit

Permalink
Add test results
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusefendi52 committed Dec 4, 2024
1 parent 33b9f81 commit 0904756
Showing 1 changed file with 36 additions and 31 deletions.
67 changes: 36 additions & 31 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,47 @@ name: Deploy
on:
workflow_dispatch:
push:
branches: [ main ]
branches: [main]

jobs:
deploy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun install --frozen-lockfile
- run: bun run tests

- name: Install dependencies
run: bun install --frozen-lockfile
- run: bun run tests

# E2E tests
- name: Install minio
run: |
wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio_20241107005220.0.0_amd64.deb -O minio.deb
sudo dpkg -i minio.deb
- run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/tursodatabase/libsql/releases/download/libsql-server-v0.24.28/libsql-server-installer.sh | sh
- name: Get installed Playwright version
id: playwright-version
run: |
playwrightVersion=$(bunx playwright --version)
echo "version=$playwrightVersion" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: playwright-cache
with:
path: '~/.cache/ms-playwright'
key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
restore-keys: |
${{ runner.os }}-playwright-
- name: Install Playwright Browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: bunx playwright install --with-deps
- run: bun run e2e
# E2E tests
- name: Install minio
run: |
wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio_20241107005220.0.0_amd64.deb -O minio.deb
sudo dpkg -i minio.deb
- run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/tursodatabase/libsql/releases/download/libsql-server-v0.24.28/libsql-server-installer.sh | sh
- name: Get installed Playwright version
id: playwright-version
run: |
playwrightVersion=$(bunx playwright --version)
echo "version=$playwrightVersion" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: playwright-cache
with:
path: "~/.cache/ms-playwright"
key: "${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}"
restore-keys: |
${{ runner.os }}-playwright-
- name: Install Playwright Browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: bunx playwright install --with-deps
- run: bun run e2e

- name: Deploy
run: curl -X POST https://api.cloudflare.com/client/v4/pages/webhooks/deploy_hooks/344ca361-b2d3-48e6-b896-ffa2dd1e9a1b
- name: Deploy
run: curl -X POST https://api.cloudflare.com/client/v4/pages/webhooks/deploy_hooks/344ca361-b2d3-48e6-b896-ffa2dd1e9a1b

- uses: actions/upload-artifact@v4
with:
name: test-results
path: |
test-results

0 comments on commit 0904756

Please sign in to comment.