Skip to content

Commit

Permalink
ci: update workflows (#401)
Browse files Browse the repository at this point in the history
* ci: update workflows

* ci: add netlify deploy workflows

* ci: add e2e

* ci: remove custom cypress reporter

* chore: remove jest reporting
  • Loading branch information
ismay authored Oct 15, 2024
1 parent 3a3274b commit 1482aa6
Show file tree
Hide file tree
Showing 16 changed files with 150 additions and 705 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/comment-and-close.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: comment-and-close

on:
issues:
types: [opened]

jobs:
comment-and-close:
uses: dhis2/workflows-platform/.github/workflows/comment-and-close.yml@v1
if: '!contains(github.event.issue.sender.login , fromJson(''["dhis2-bot", "kodiakhq", "dependabot"]''))'
with:
issue_number: ${{ github.event.issue.number }}
17 changes: 17 additions & 0 deletions .github/workflows/deploy-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: deploy-branch

on:
push:
branches:
- development

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
deploy:
uses: dhis2/workflows-platform/.github/workflows/deploy-branch.yml@v1
secrets: inherit
with:
branch: development
14 changes: 14 additions & 0 deletions .github/workflows/deploy-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: deploy-pr

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
deploy:
uses: dhis2/workflows-platform/.github/workflows/deploy-pr.yml@v1
if: '!github.event.pull_request.head.repo.fork'
secrets: inherit
17 changes: 17 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: deploy-production

on:
push:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
deploy:
uses: dhis2/workflows-platform/.github/workflows/deploy-production.yml@v1
secrets: inherit
with:
branch: master
56 changes: 0 additions & 56 deletions .github/workflows/dhis2-netlify-deploy-branch.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/dhis2-netlify-deploy-pr.yml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/dhis2-netlify-deploy-production.yml

This file was deleted.

Loading

1 comment on commit 1482aa6

@dhis2-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.