-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from dhis2/github-workflows
chore: added workflows
- Loading branch information
Showing
9 changed files
with
1,250 additions
and
24,884 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_extends: .github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: deploy-production | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
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: main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: lint-pr-title | ||
|
||
on: | ||
pull_request: | ||
types: ['opened', 'edited', 'reopened', 'synchronize'] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint-pr-title: | ||
uses: dhis2/workflows-platform/.github/workflows/lint-pr-title.yml@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: test-and-release | ||
|
||
on: push | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
# Cancel previous runs if not on a release branch | ||
cancel-in-progress: ${{ !contains(fromJSON('["refs/heads/main", "ref/heads/main"]'), github.ref) }} | ||
|
||
jobs: | ||
lint-commits: | ||
uses: dhis2/workflows-platform/.github/workflows/lint-commits.yml@v1 | ||
lint: | ||
uses: dhis2/workflows-platform/.github/workflows/lint.yml@v1 | ||
test: | ||
uses: dhis2/workflows-platform/.github/workflows/test.yml@v1 | ||
# e2e: | ||
# uses: dhis2/workflows-platform/.github/workflows/legacy-e2e.yml@v1 | ||
# # Skips forks and dependabot PRs | ||
# if: '!github.event.push.repository.fork' | ||
# secrets: inherit | ||
# with: | ||
# api_version: 42 | ||
release: | ||
needs: [lint-commits, lint, test] | ||
uses: dhis2/workflows-platform/.github/workflows/release.yml@v1 | ||
# Skips forks and dependabot PRs | ||
if: '!github.event.push.repository.fork' | ||
secrets: inherit |
Oops, something went wrong.
b93b4e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://fhir-ig-generator.netlify.dhis2.org as production
🚀 Deployed on https://674d86298f8807d62aa8749b.fhir-ig-generator.netlify.dhis2.org