Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
gewenyu99 committed Jul 22, 2024
1 parent b29853f commit 89f8d13
Showing 1 changed file with 47 additions and 14 deletions.
61 changes: 47 additions & 14 deletions .github/workflows/pr-annotations.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,60 @@
name: Annotate PR with trunk issues
name: CI

on:
push:
branches: [ "*" ]
branches:
- main
- develop
pull_request:
branches: [ "main" ]
types: [ "completed" ]

permissions: read-all
# cancel in-progress runs on new commits to same PR (gitub.event.number)
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
trunk_check:
name: Trunk Check Annotate
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.6.3
run_install: true
- run: pnpm run lint

permissions:
checks: write
Check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.6.3
run_install: true
- run: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} && pnpm run check

Tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.6.3
run_install: true
- run: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} && pnpm run test

- name: Trunk Check
uses: trunk-io/trunk-action@v1
Playwright-Tests:
name: Playwright Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
post-annotations: true # only for fork PRs
version: 8.6.3
run_install: true
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- run: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} && pnpm run pw

0 comments on commit 89f8d13

Please sign in to comment.