This will allow us to create a suite of tests for our new features rather than using my personal image repo
32 lines
637 B
YAML
32 lines
637 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:
|
|
version: v0.8.3
|
|
|
|
- name: Earthly login
|
|
if: github.repository == 'blue-build/cli'
|
|
run: |
|
|
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
|
|
earthly org s blue-build
|
|
earthly sat s blue-build
|
|
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.ref }}
|
|
|
|
- name: Run build
|
|
run: earthly --ci -P +all
|
|
|