Skip to content

Merge pull request #52 from dhis2/ci-add-workflows #10

Merge pull request #52 from dhis2/ci-add-workflows

Merge pull request #52 from dhis2/ci-add-workflows #10

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 tests are currently not implemented
# 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] # Add e2e here when implemented
uses: dhis2/workflows-platform/.github/workflows/release.yml@v1
# Skips forks and dependabot PRs
if: '!github.event.push.repository.fork'
secrets: inherit
with:
publish-apphub: true

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

View workflow run for this annotation

GitHub Actions / test-and-release

Invalid workflow file

The workflow is not valid. .github/workflows/test-and-release.yml (Line: 34, Col: 29): Invalid input, publish-apphub is not defined in the referenced workflow. .github/workflows/test-and-release.yml (Line: 35, Col: 29): Invalid input, publish-github is not defined in the referenced workflow.
publish-github: true