Skip to content

Implementation of release workflow #1

Implementation of release workflow

Implementation of release workflow #1

Workflow file for this run

name: Run tests and linting on PR
on:
pull_request:
permissions:
contents: read
packages: read
jobs:
validate_release_pr_target:
if: startsWith(github.head_ref, 'release/')
runs-on: ubuntu-latest
steps:
- name: Validate release PR target
env:
BASE: ${{ github.base_ref }}
run: |
if [[ "${BASE}" != "main" ]]; then
echo "PRs from release branches must target 'main'"
exit 1
else
echo "Valid: release branch PR targets main"
fi
validate:
if: ${{ startsWith(github.head_ref, 'release/') || (github.head_ref == 'main') }}
uses: ./.github/workflows/reusable-gate.yml
tests:
uses: ./.github/workflows/reusable-tests.yml
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}