Skip to content

Commit

Permalink
ci: refactor workflows to match backend
Browse files Browse the repository at this point in the history
  • Loading branch information
arealmaas committed Mar 14, 2024
1 parent 1f42376 commit 86567b3
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 28 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci-cd-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI/CD Main

on:
push:
branches:
- main

jobs:
build-and-test:
uses: ./.github/workflows/workflow-build-and-test.yml
with:
environment: test

deploy-documentation:
uses: ./.github/workflows/workflow-deploy-docs.yml

15 changes: 15 additions & 0 deletions .github/workflows/ci-cd-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI/CD Pull Request

on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]

jobs:
build-and-test:
uses: ./.github/workflows/workflow-build-and-test.yml
with:
environment: test

playwright-test:
uses: ./.github/workflows/workflow-playwright-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@ on:
environment:
required: true
type: string
push:
paths:
- 'packages/**'
- './**'
- '.github/workflows/CI.yml'
- 'package.json'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- 'turbo.json'
- 'biome.json'

concurrency:
group: ${{ github.ref }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: CD Docs
name: Deploy documentation

on:
push:
branches:
- main
workflow_call:

jobs:
deploy-github-pages:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
name: Playwright tests on pr
name: Playwright tests
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
paths:
- 'packages/**'
- './**'
- '.github/workflows/playwright.yml'
- 'package.json'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- 'turbo.json'
- 'biome.json'

workflow_call:
workflow_dispatch:

jobs:
Expand Down

0 comments on commit 86567b3

Please sign in to comment.