Skip to content

Commit

Permalink
ci: combine workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux committed Mar 19, 2024
1 parent cadf4e6 commit 06bf242
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 41 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/deploy-preview.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- opened
- reopened
- synchronize
- labeled

concurrency: pr-${{ github.ref }}

Expand Down Expand Up @@ -125,6 +126,7 @@ jobs:
name: core-html-report--attempt-${{ github.run_attempt }}
path: playwright-report
retention-days: 2

unit:
if: ${{ needs.changes.outputs.core == 'true' || needs.changes.outputs.angular == 'true' }}
needs: [build]
Expand All @@ -138,3 +140,23 @@ jobs:

- name: Test
run: pnpm run test --cache-dir=.turbo --filter !\documentation

deploy-preview:
if: ${{ contains(github.event.pull_request.labels.*.name, 'Deploy Preview') }}
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: ./.github/workflows/actions/turbo

- name: Build
run: pnpm build --cache-dir=.turbo --filter documentation

- name: Publish
id: publish
uses: netlify/actions/cli@master
with:
args: deploy
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

0 comments on commit 06bf242

Please sign in to comment.