GitHub Action for Dagger, a programmable deployment system.
name: dagger
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Dagger
uses: dagger/dagger-for-github@v3
with:
cmds: do test
steps:
-
name: Install Dagger
uses: dagger/dagger-for-github@v3
with:
install-only: true
-
name: Show Dagger version
run: dagger version
steps:
-
name: Dagger
uses: dagger/dagger-for-github@v3
with:
cmds: |
project update
do test
Following inputs can be used as step.with
keys
List
type is a newline-delimited stringcmds: | project update do test
Name | Type | Default | Description |
---|---|---|---|
version |
String | 0.2 |
Dagger version (e.g., 0.2.36 , latest , https://github.com/dagger/dagger.git#main ) |
cmds |
List | List of Dagger commands | |
workdir |
String | . |
Working directory (below repository root) |
install-only |
Bool | false |
Just install Dagger |
cleanup |
Bool | true |
Cleanup Dagger home folder at the end of a job |
# format code and build javascript artifacts
docker buildx bake pre-checkin
# validate all code has correctly formatted and built
docker buildx bake validate
# run tests
docker buildx bake test
Apache-2.0 License. See LICENSE
for more details.