Adds Pest tests. Starts GH Action.

This commit is contained in:
Joao Patricio
2023-03-20 21:17:28 +00:00
parent 9a7a992495
commit d7c7494007
9 changed files with 967 additions and 36 deletions

26
.github/workflows/docker-image.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "*" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: |
docker run --rm -u "$(id -u):$(id -g)" \
-v "$(pwd):/app" \
-w /app composer:2 \
composer install --ignore-platform-reqs
TAG=$(date +%s) ./vendor/bin/sail build
TAG=$(date +%s) ./vendor/bin/sail up -d
sleep 5
./vendor/bin/sail artisan test