-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (28 loc) · 940 Bytes
/
ci.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
name: CI
on:
push:
pull_request:
jobs:
ci:
name: Build CI container
runs-on: ubuntu-latest
steps:
- name: "Install BuildX"
uses: docker/setup-buildx-action@v3
with:
install: true
- name: "Build docker image"
uses: "docker/build-push-action@v6"
with:
target: "development"
tags: "ghcr.io/roave/docbooktool:test-image"
push: "false"
load: "true"
cache-from: "type=gha,scope=ci-cache"
cache-to: "type=gha,mode=max,scope=ci-cache"
- name: "Psalm"
run: "docker run --rm --entrypoint=php ghcr.io/roave/docbooktool:test-image vendor/bin/psalm"
- name: "PHPUnit"
run: "docker run --rm --entrypoint=php ghcr.io/roave/docbooktool:test-image vendor/bin/phpunit"
- name: "PHPCS"
run: "docker run --rm --entrypoint=php ghcr.io/roave/docbooktool:test-image vendor/bin/phpcs"