ci: refer to workflows by version #36
Workflow file for this run
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
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(github.ref, fromJSON('["master", "main"]')) }} | ||
jobs: | ||
lint-commits: | ||
uses: dhis2/workflows-test/.github/workflows/lint-commits.yml@v1 | ||
lint: | ||
uses: dhis2/workflows-test/.github/workflows/lint.yml@v1 | ||
test: | ||
uses: dhis2/workflows-test/.github/workflows/test.yml@v1 | ||
e2e: | ||
uses: dhis2/workflows-test/.github/workflows/e2e.yml@v1 | ||
# Skips forks and dependabot PRs | ||
if: '!github.event.push.repository.fork' | ||
secrets: inherit | ||
release: | ||
needs: [lint, test, e2e] | ||
uses: dhis2/workflows-test/.github/workflows/release.yml@v1 | ||
Check failure on line 24 in .github/workflows/test-and-release.yml GitHub Actions / .github/workflows/test-and-release.ymlInvalid workflow file
|
||
# Skips forks and dependabot PRs | ||
if: '!github.event.push.repository.fork' | ||
secrets: inherit |