Skip to content

ci: update to shared workflows #1

ci: update to shared workflows

ci: update to shared workflows #1

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/master", "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

Check failure on line 18 in .github/workflows/test-and-release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-and-release.yml

Invalid workflow file

error parsing called workflow ".github/workflows/test-and-release.yml" -> "dhis2/workflows-platform/.github/workflows/legacy-e2e.yml@v1" (source tag with sha:025af8ba5aeaa8e2dfb13834a318817e8979e6f7) : You have an error in your yaml syntax on line 13
# Skips forks and dependabot PRs
if: '!github.event.push.repository.fork'
secrets: inherit
release:
needs: [lint-commits, lint, test, e2e]
uses: dhis2/workflows-platform/.github/workflows/release.yml@v1
# Skips forks and dependabot PRs
if: '!github.event.push.repository.fork'
secrets: inherit