Skip to content

Commit

Permalink
Use correct method for checking source branch refs
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored Nov 17, 2023
1 parent 20684f3 commit a574300
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/ci-unit-tests-docker.patch-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,60 +2,61 @@
name: Docker Unit Tests

# Run on PRs from external repositories, let them pass, and then Mergify will check them.
# GitHub doesn't support filtering workflows by source branch names, so we have to do it for each job.
on:
pull_request:
# IMPORTANT
#
# These patterns are the inverse of the ones in the non-patch file.
branches:
# Patch only external repositories
- '**/**'
# But don't patch mergify and dependabot
- '!mergify/**'
- '!dependabot/**'

# IMPORTANT
#
# These job names must be kept in sync with the `.patch.yml` and `.yml` files.
jobs:
build:
name: Build CI Docker / Build images
# If this is a PR, check that the PR source is from a local branch.
# (github.ref is always a local branch, so this check always passes for non-PRs.)
if: ${{ contains(github.head_ref || github.ref, 'refs/heads/') }}
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'

test-all:
name: Test all
if: ${{ contains(github.head_ref || github.ref, 'refs/heads/') }}
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'

test-fake-activation-heights:
name: Test with fake activation heights
if: ${{ contains(github.head_ref || github.ref, 'refs/heads/') }}
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'

test-empty-sync:
name: Test checkpoint sync from empty state
if: ${{ contains(github.head_ref || github.ref, 'refs/heads/') }}
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'

test-lightwalletd-integration:
name: Test integration with lightwalletd
if: ${{ contains(github.head_ref || github.ref, 'refs/heads/') }}
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'

test-configuration-file:
name: Test CI default Docker config file / Test default-conf in Docker
if: ${{ contains(github.head_ref || github.ref, 'refs/heads/') }}
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'

test-zebra-conf-path:
name: Test CI custom Docker config file / Test custom-conf in Docker
if: ${{ contains(github.head_ref || github.ref, 'refs/heads/') }}
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'

0 comments on commit a574300

Please sign in to comment.