Skip to content

Merge pull request #6 from alok/patch-1 #30

Merge pull request #6 from alok/patch-1

Merge pull request #6 from alok/patch-1 #30

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
FORCE_COLOR: 1
jobs:
build-test-publish:
runs-on: ubuntu-latest
steps:
- uses: earthly/actions-setup@v1
with:
version: ^0.7.20
- uses: actions/checkout@v2
- 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: Run tests
run: earthly +test
- name: Run examples
run: earthly +test-examples