Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .cloud/dagger/scheduler_bundle.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
package scheduler_bundle

import (
"dagger.io/dagger"
"universe.dagger.io/docker"
)

dagger.#Plan & {
_vendorMount: "/srv/app/vendor": {
dest: "/srv/app/vendor",
type: "cache",
contents: id: "vendor-cache"
}

client: {
filesystem: "./": read: exclude: [".cloud/dagger", ".github", ".changelog", ".gitattributes", ".gitignore", "doc", "CONTRIBUTING.md", "README.md", "vendor"]
env: APP_ENV: "test"
}

actions: {
#Composer: docker.#Run & {
command: name: "composer"
}
composer: docker.#Pull & {
source: "composer"
}
[tag=string]: {
versions: {
"8.0": _,
"8.1": _,
build: docker.#Build & {
#Run: docker.#Run & {
input: build.output
mounts: _vendorMount
}
steps: [
docker.#Pull & {
source: "php:\(tag)"
},
docker.#Copy & {
input: composer.output
contents: build.output
path: "/usr/bin/composer"
},
#Composer & {
command: args: ["update", "--prefer-stable"]
mounts: _vendorMount
},
#Composer & {
command: args: ["dump-autoload", "--optimize", "--classmap-authoritative"]
},
]
}
}
}
}
}
25 changes: 25 additions & 0 deletions .github/workflows/dagger_style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Dagger - Style
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * *"

env:
DAGGER_LOG_FORMAT: plain

jobs:
dagger:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2

- name: PHP-CS-Fixer
uses: dagger/dagger-for-github@v2
with:
args: do php_cs_fixer --plan .cloud/dagger/scheduler_bundle.cue
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ tests/.assets/**/*.json

# Docker
docker-compose.override.yaml

# Dagger
cue.mod
2 changes: 1 addition & 1 deletion .symfony.insight.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
php_version: 7.4
php_version: 8.0

global_exclude_dirs:
- .github
Expand Down