Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hellopablo committed Mar 12, 2021
1 parent d5dc386 commit 2a1417f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build_and_test
on: [ push ]
jobs:
test:
name: build_and_test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: 7.3

- name: Cache Composer dependencies
uses: actions/cache@v1
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

- name: Cache Yarn dependencies
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}

- name: Install Composer dependencies
run: composer install

- name: Install Yarn dependencies
run: yarn install

- name: Run tests
run: composer test

- name: Build assets
run: yarn build

0 comments on commit 2a1417f

Please sign in to comment.