Skip to content

Commit

Permalink
Switch to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Korbeil committed Sep 10, 2021
1 parent 0d21808 commit a6ee485
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 31 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 15
matrix:
php-versions: ['7.4', '8.0']
name: tests-${{ matrix.php-versions }}
steps:
- name: checkout
uses: actions/checkout@master
- name: cache-composer
uses: actions/cache@v2
with:
path: ~/.composer/cache/
key: composer-${{ matrix.php-versions }}-${{ github.sha }}
- name: setup
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php-versions }}
- name: composer install
run: composer update --prefer-stable
- name: Start docker
run: docker build -t httpbin . & docker run -d -p 8081:80 httpbin
- name: tests
run: composer test
tests-lowest:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
- name: cache-composer-lowest
uses: actions/cache@v2
with:
path: ~/.composer/cache/
key: composer-lowest-${{ github.sha }}
- name: setup
uses: shivammathur/[email protected]
with:
php-version: 7.3
- name: composer install
run: composer update --prefer-lowest --prefer-stable
- name: Start docker
run: docker build -t httpbin . & docker run -d -p 8081:80 httpbin
- name: tests
run: composer test
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

0 comments on commit a6ee485

Please sign in to comment.