Skip to content

Commit 982d6d1

Browse files
authored
Configure GitHub Actions (#3)
1 parent 5f075e1 commit 982d6d1

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: "Build"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [master]
7+
8+
jobs:
9+
build:
10+
name: "Build"
11+
runs-on: "ubuntu-latest"
12+
13+
steps:
14+
- name: "Checkout"
15+
uses: actions/checkout@v3
16+
17+
- name: "Install PHP"
18+
uses: "shivammathur/setup-php@v2"
19+
with:
20+
coverage: "pcov"
21+
php-version: "8.0"
22+
ini-values: memory_limit=-1
23+
24+
- name: "Cache Composer dependencies"
25+
uses: actions/cache@v3
26+
with:
27+
path: |
28+
~/.composer/cache
29+
vendor
30+
key: "php-8.0"
31+
restore-keys: "php-8.0"
32+
33+
- name: "Validate composer"
34+
run: "composer validate"
35+
36+
- name: "Install dependencies"
37+
run: "composer install"
38+
39+
- name: "Run composer build"
40+
run: "composer build"

0 commit comments

Comments
 (0)