Skip to content

Commit

Permalink
Start using github.repository
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Jul 14, 2023
1 parent 04deb0f commit 5880179
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ env:
PINNED_NIGHTLY: nightly-2023-04-16
# Prevent Github API rate limiting.
LIGHTHOUSE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Enable self-hosted runners for the sigp repo only.
SELF_HOSTED_RUNNERS: ${{ github.repository == 'sigp/lighthouse' }}
jobs:
target-branch-check:
name: target-branch-check
Expand Down Expand Up @@ -48,11 +50,10 @@ jobs:
run: make cargo-fmt
release-tests-ubuntu:
name: release-tests-ubuntu
runs-on: ${{ vars.SELF_HOSTED_RUNNERS == 'true' && '[self-hosted, linux, large]' || 'ubuntu-latest' }}
# Use self-hosted runners only on the sigp repo.
runs-on: ${{ github.repository == 'sigp/lighthouse' && '[self-hosted, linux, large]' || 'ubuntu-latest' }}
needs: cargo-fmt
steps:
- name: DELETE ME
run: echo ${{ github.repository }}
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
if: vars.SELF_HOSTED_RUNNERS == false
Expand Down Expand Up @@ -102,7 +103,8 @@ jobs:
run: make test-release
beacon-chain-tests:
name: beacon-chain-tests
runs-on: ${{ vars.SELF_HOSTED_RUNNERS == 'true' && '[self-hosted, linux, large]' || 'ubuntu-latest' }}
# Use self-hosted runners only on the sigp repo.
runs-on: ${{ github.repository == 'sigp/lighthouse' && '[self-hosted, linux, large]' || 'ubuntu-latest' }}
needs: cargo-fmt
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -141,7 +143,8 @@ jobs:
run: make test-slasher
debug-tests-ubuntu:
name: debug-tests-ubuntu
runs-on: ${{ vars.SELF_HOSTED_RUNNERS == 'true' && '[self-hosted, linux, large]' || 'ubuntu-latest' }}
# Use self-hosted runners only on the sigp repo.
runs-on: ${{ github.repository == 'sigp/lighthouse' && '[self-hosted, linux, large]' || 'ubuntu-latest' }}
needs: cargo-fmt
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 5880179

Please sign in to comment.