build: update configuration files
This commit is contained in:
parent
3f496168d5
commit
ea60b27438
3 changed files with 45 additions and 1 deletions
43
.github/workflows/ci.yml
vendored
Normal file
43
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
COMPOSE_DOCKER_CLI_BUILD: 1
|
||||||
|
DOCKER_BUILDKIT: 1
|
||||||
|
DOCKER_UID: 1001
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_and_test:
|
||||||
|
name: Build and test
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Install just
|
||||||
|
run: |
|
||||||
|
curl --proto '=https' \
|
||||||
|
--tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
|
||||||
|
|
||||||
|
- name: Checkout the code
|
||||||
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||||
|
|
||||||
|
- name: Build and test
|
||||||
|
run: |
|
||||||
|
docker compose version
|
||||||
|
|
||||||
|
cp --no-clobber .env.example .env
|
||||||
|
|
||||||
|
docker compose build --progress plain
|
||||||
|
|
||||||
|
docker compose up --detach
|
||||||
|
docker compose logs
|
||||||
|
|
||||||
|
just composer install --quiet --no-progress
|
||||||
|
|
||||||
|
# TODO: add PHPCS and PHPStan
|
||||||
|
|
||||||
|
just test --testdox --colors=always
|
|
@ -54,4 +54,5 @@ dockerfile:
|
||||||
- phpunit --testdox
|
- phpunit --testdox
|
||||||
|
|
||||||
experimental:
|
experimental:
|
||||||
|
createGitHubActionsConfiguration: true
|
||||||
useNewDatabaseCredentials: true
|
useNewDatabaseCredentials: true
|
||||||
|
|
2
justfile
2
justfile
|
@ -28,5 +28,5 @@ _run service command *args:
|
||||||
--entrypoint {{ command }} \
|
--entrypoint {{ command }} \
|
||||||
--no-deps \
|
--no-deps \
|
||||||
--rm \
|
--rm \
|
||||||
--tty \
|
-T \
|
||||||
{{ service }} {{ args }}
|
{{ service }} {{ args }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue