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@v2
-
name: Dagger
uses: dagger/dagger-for-github@v2
with:
args: do test
steps:
-
name: Install Dagger
uses: dagger/dagger-for-github@v1
with:
install-only: true
-
name: Show Dagger version
run: dagger version
Following inputs can be used as step.with
keys
Name | Type | Default | Description |
---|---|---|---|
version |
String | latest |
Dagger version |
args |
String | Arguments to pass to Dagger | |
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
MIT. See LICENSE
for more details.