name: PR Pipeline on: pull_request concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true # other running workflows get cancelled on the same branch jobs: get-version: name: Get version uses: ./.github/workflows/get-version.yml tests: needs: [get-version] uses: ./.github/workflows/tests.yml with: {} secrets: inherit builds: needs: [get-version] uses: ./.github/workflows/builds.yml with: IMAGE_VERSION_TAG: ${{ needs.get-version.outputs.IMAGE_VERSION_TAG }} REGISTRY_DOMAIN: 'ghcr.io' REGISTRY_USERNAME: ${{ github.actor }} # REGISTRY_DOMAIN, REGISTRY_USERNAME, REGISTRY_TOKEN must be configured to match the below IMAGE_PREFIX IMAGE_PREFIX: 'ghcr.io/specklesystems' PUBLISH: false # do not publish the sourcemaps or include the version in frontend-2 builds for pull requests secrets: DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }} REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}