-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 990 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: "Tests"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on: [pull_request]
jobs:
build:
name: Build & Unit
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build image
uses: docker/build-push-action@v6
with:
context: .
push: false
load: true
tags: storage-dev
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Start storage
run: |
docker compose up -d
sleep 10
- name: Doctor
run: |
docker compose logs tests
docker ps
docker compose exec -T tests ls -la /usr/src/code/vendor/bin
docker compose exec -T tests pwd
- name: Unit Tests
run: docker compose exec -T tests vendor/bin/phpunit --configuration phpunit.xml --debug --testsuite unit