Skip to content

Commit

Permalink
chore: Require integration tests to depend on prebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Oct 8, 2024
1 parent 8fc34f3 commit 3a47824
Showing 1 changed file with 38 additions and 36 deletions.
74 changes: 38 additions & 36 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,6 @@ env:
RUST_LOG_STYLE: always

jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- uses: earthly/actions-setup@v1

- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}

- name: Run test
id: build
run: |
earthly --ci +test
lint:
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- uses: earthly/actions-setup@v1

- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}

- name: Run lint
id: build
run: |
earthly --ci +lint
arm64-prebuild:
timeout-minutes: 10
runs-on: ubuntu-latest
Expand Down Expand Up @@ -182,6 +146,8 @@ jobs:
permissions:
packages: write
timeout-minutes: 60
needs:
- amd64-prebuild
runs-on: ubuntu-latest

steps:
Expand All @@ -202,6 +168,42 @@ jobs:
earthly bootstrap
earthly --ci -P ./integration-tests+all
test:
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- uses: earthly/actions-setup@v1

- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}

- name: Run test
id: build
run: |
earthly --ci +test
lint:
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- uses: earthly/actions-setup@v1

- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}

- name: Run lint
id: build
run: |
earthly --ci +lint
docker-build:
timeout-minutes: 20
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3a47824

Please sign in to comment.