Skip to content

Commit

Permalink
Revert "Test GitHub Actions"
Browse files Browse the repository at this point in the history
This reverts commit afc3949.
  • Loading branch information
typeofweb committed Nov 24, 2023
1 parent afc3949 commit 468a92a
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: Build, TypeScript, tests
on:
pull_request:
types: [opened, reopened, synchronize]
issue_comment:
types: [created, edited]
name: Build, TypeScripts, tests
on: deployment_status

concurrency:
group: tests-${{ github.event.pull_request.number || github.event.issue.number || github.ref }}
group: tests-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build_and_test:
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body , '✅ Ready') }}
if: ${{ github.event.deployment_status.state == 'success' }}

runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -55,15 +51,18 @@ jobs:
- run: pnpm exec playwright install-deps chromium
if: steps.playwright-cache.outputs.cache-hit == 'true'

- uses: aaimio/[email protected]
id: vercel_preview_url
- name: Wait for Vercel Preview
uses: patrickedqvist/[email protected]
id: waitForVercel
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 240
check_interval: 5

- name: Run Playwright tests
run: pnpm exec playwright test
env:
BASE_URL: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}
BASE_URL: ${{ steps.waitForVercel.outputs.url }}

- uses: actions/upload-artifact@v3
if: always()
Expand Down

0 comments on commit 468a92a

Please sign in to comment.