# .github/workflows/dagger.yaml
name: dagger
on:
push:
branches:
jobs:
hello:
name: hello
runs-on: ubuntu-latest
steps:
- name: Call Dagger Function
uses: dagger/dagger-for-github@8.0.0
with:
args: phpunit
# assumes the Dagger Cloud token is in
# a repository secret named DAGGER_CLOUD_TOKEN
# set via the GitHub UI/CLI
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
Running dagger call phpunit works locally, but not in the action:
12 : load module: .
13 : ┆ finding module configuration
13 : ┆ finding module configuration DONE [0.2s]
12 : load module: . ERROR [0.2s]
12 : ! module not found
Possibly useful information:
- The
mainbranch does not have the dagger module set up. - The PR adds the dagger module as well as the workflow.
(This is being done for teaching/demo purposes which is why both are being added at the same time)