Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit 2a1417f

Browse files
committed
Add workflow
1 parent d5dc386 commit 2a1417f

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: build_and_test
2+
on: [ push ]
3+
jobs:
4+
test:
5+
name: build_and_test
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout code
9+
uses: actions/checkout@v2
10+
11+
- name: Setup PHP, with composer and extensions
12+
uses: shivammathur/setup-php@v2
13+
with:
14+
php-version: 7.3
15+
16+
- name: Cache Composer dependencies
17+
uses: actions/cache@v1
18+
with:
19+
path: vendor
20+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
21+
restore-keys: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
22+
23+
- name: Cache Yarn dependencies
24+
uses: actions/cache@v1
25+
with:
26+
path: node_modules
27+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
28+
restore-keys: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
29+
30+
- name: Install Composer dependencies
31+
run: composer install
32+
33+
- name: Install Yarn dependencies
34+
run: yarn install
35+
36+
- name: Run tests
37+
run: composer test
38+
39+
- name: Build assets
40+
run: yarn build

0 commit comments

Comments
 (0)