Skip to content

Commit

Permalink
Add manual check
Browse files Browse the repository at this point in the history
  • Loading branch information
niklas-heer committed Nov 9, 2023
1 parent f7c0583 commit 4a7721f
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,45 @@ on:
pull_request:
types:
- labeled
workflow_dispatch:
inputs:
build:
description: 'Name of the earth build to run'
required: true
type: string

jobs:
check:
runs-on: ubuntu-latest
if: ${{ inputs.build }}
steps:
- uses: actions/checkout@v3
- name: Put back the git branch into git (Earthly uses it for tagging)
run: |
branch=""
if [ -n "$GITHUB_HEAD_REF" ]; then
branch="$GITHUB_HEAD_REF"
else
branch="${GITHUB_REF##*/}"
fi
git checkout -b "$branch" || true
- name: Download latest earthly
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.6.26/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
- name: Earthly version
run: earthly --version
- name: Collect data
run: earthly --config earthly-config.yml +${{ inputs.build }}
- name: Analyze data
run: earthly --config earthly-config.yml +analysis
- name: Archive test results
uses: actions/upload-artifact@v3
with:
name: combined-results
path: |
results/*.json
results/*.csv
results/*.png
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' || github.event.review.state == 'approved' || github.event.label.name == 'enable-ci'
Expand Down

0 comments on commit 4a7721f

Please sign in to comment.