Skip to content

Commit 3ad3555

Browse files
committed
add GH actions
1 parent 62aa8c8 commit 3ad3555

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: [Gummibeer]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: astrotomic
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: astrotomic
11+
otechie: # Replace with a single Otechie username
12+
custom: ['https://offset.earth/treeware']
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: normalize composer.json
2+
3+
on:
4+
push:
5+
paths:
6+
- 'composer.json'
7+
8+
jobs:
9+
normalize:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Git checkout
13+
uses: actions/checkout@v2
14+
15+
- name: normalize composer.json
16+
run: |
17+
composer global require ergebnis/composer-normalize
18+
composer normalize
19+
20+
- uses: stefanzweifel/[email protected]
21+
with:
22+
commit_message: normalize composer.json

.github/workflows/run-tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: run-tests
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: true
14+
matrix:
15+
php: [7.4]
16+
dependency-version: [prefer-lowest, prefer-stable]
17+
18+
name: P${{ matrix.php }} - ${{ matrix.dependency-version }}
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Cache dependencies
25+
uses: actions/cache@v1
26+
with:
27+
path: ~/.composer/cache/files
28+
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
29+
keys: |
30+
dependencies-php-${{ matrix.php }}-composer-
31+
dependencies-php-
32+
33+
- name: Install dependencies
34+
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
35+
36+
- name: Execute tests
37+
run: vendor/bin/pest

0 commit comments

Comments
 (0)