This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/.github/workflows/dagger-ci.yml

66 lines
1.3 KiB
YAML
Raw Normal View History

name: "Dagger CI"
on:
push:
branches: [main]
paths:
- "**.sh"
- "**.bash"
- "**.go"
- "**.cue"
- "**.bats"
- "Makefile"
- "go.mod"
- "go.sum"
- ".github/workflows/dagger-ci.yml"
pull_request:
branches: [main]
paths:
- "**.sh"
- "**.bash"
- "**.go"
- "**.cue"
- "**.bats"
- "Makefile"
- "go.mod"
- "go.sum"
- ".github/workflows/dagger-ci.yml"
env:
DAGGER_LOG_FORMAT: plain
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: Checkout
2022-10-26 19:27:34 +02:00
uses: actions/checkout@v3
- name: "Setup Go"
2023-06-18 02:32:50 +02:00
uses: actions/setup-go@v4
with:
go-version: 1.16
- name: "Expose GitHub Runtime"
2022-10-26 19:27:34 +02:00
uses: crazy-max/ghaction-github-runtime@v2
# - name: "Set up dagger from source"
# run: |
# make dagger
# cp ./cmd/dagger/dagger /usr/local/bin
- name: "Set up dagger"
2022-10-26 19:27:34 +02:00
uses: dagger/dagger-for-github@v3
with:
install-only: true
- name: Build
env:
DAGGER_LOG_LEVEL: "debug"
DAGGER_LOG_FORMAT: "plain"
DAGGER_CACHE_TO: "type=gha,mode=max,scope=dagger-ci-build"
DAGGER_CACHE_FROM: "type=gha,scope=dagger-ci-build"
run: |
dagger do build