particle-os-cli/.github/workflows/build-pr.yml
Gerald Pinder 097dbb391a
fix: Improve workflow for main branch and PRs (#17)
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.
2024-01-27 11:44:54 -06:00

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