-
Notifications
You must be signed in to change notification settings - Fork 101
49 lines (38 loc) · 1.04 KB
/
tests.yaml
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
44
45
46
47
48
49
name: "Test application"
on:
push:
branches:
- master
pull_request:
branches:
- master
# Allow workflow to be manually run from the GitHub UI
workflow_dispatch:
jobs:
tests:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(make composer-cache-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Initialise environment
run: make prep-ci
- name: Run static analysis
run: make static-analysis
- name: Run behaviour tests
run: make behaviour
- name: Run unit and functional tests
run: make unit-tests
- name: Cleanup
if: always()
run: make clean