Skip to content

Commit 20b54ce

Browse files
authored
Merge pull request #25 from leviy/master_LPD-10215-github-actions
LPD-10215 Migrate to GitHub Actions
2 parents 7ac8172 + e3a08e5 commit 20b54ce

File tree

2 files changed

+33
-14
lines changed

2 files changed

+33
-14
lines changed

Diff for: .github/workflows/test.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
on: push
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-18.04
7+
strategy:
8+
matrix:
9+
prefer: ["prefer-stable", "prefer-lowest"]
10+
steps:
11+
- name: checkout
12+
uses: actions/checkout@v2
13+
14+
- name: Setup PHP
15+
uses: shivammathur/setup-php@v2
16+
with:
17+
php-version: '7.2'
18+
tools: composer:v2
19+
20+
- name: Get Composer Cache Directory
21+
id: composer-cache
22+
run: |
23+
echo "::set-output name=dir::$(composer config cache-files-dir)"
24+
- uses: actions/cache@v2
25+
with:
26+
path: ${{ steps.composer-cache.outputs.dir }}
27+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}-${{ matrix.prefer }}-
28+
restore-keys: ${{ runner.os }}-composer-${{ matrix.prefer }}-
29+
- name: Composer Install
30+
run: composer update --${{ matrix.prefer }} --no-interaction --no-progress --no-ansi
31+
32+
- name: Run tests
33+
run: make check

Diff for: .travis.yml

-14
This file was deleted.

0 commit comments

Comments
 (0)