actions-setup/README.md
Alex Couture-Beil 9b4c3321af
update example to use latest version
Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
2022-03-10 12:48:20 -08:00

677 B

actions

GitHub Actions for earthly

To use earthly with hithub actions, create a file under .github/workflows/ci.yml with the contents:

name: GitHub Actions CI

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  tests:
    name: example earthly test
    runs-on: ubuntu-latest
    steps:
      - uses: earthly/actions-setup@v1
        with:
          version: "latest" # or pin to an specific version, e.g. "v0.6.10"
      - uses: actions/checkout@v2
      - name: what version is installed?
        run: earthly --version
      - name: run the earthly hello world
        run: earthly github.com/earthly/hello-world:main+hello