This makes it so that the main branch will push images but PRs won't. This also puts integration tests back in the `+all` target.
27 lines
450 B
YAML
27 lines
450 B
YAML
name: Earthly PR +build
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
env:
|
|
FORCE_COLOR: 1
|
|
|
|
jobs:
|
|
build:
|
|
timeout-minutes: 60
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: earthly/actions-setup@v1
|
|
with:
|
|
use-cache: true
|
|
version: v0.8.2
|
|
|
|
# Setup repo and add caching
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.ref }}
|
|
|
|
- name: Run build
|
|
run: earthly --ci -P +build
|
|
|