forked from twigphp/Twig
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor twigphp#3429 Enhancement: Use GithubActions instead of Travis f…
…or tests (OskarStark) This PR was merged into the 1.x branch. Discussion ---------- Enhancement: Use GithubActions instead of Travis for tests You can see the first run here: OskarStark#3 Commits ------- 4438d4c Enhancement: Use GithubActions instead of Travis for tests
- Loading branch information
Showing
2 changed files
with
94 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: "CI" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- '1.x' | ||
|
||
env: | ||
SYMFONY_PHPUNIT_DISABLE_RESULT_CACHE: 1 | ||
|
||
jobs: | ||
tests: | ||
name: "PHP ${{ matrix.php-version }}" | ||
|
||
runs-on: 'ubuntu-latest' | ||
|
||
continue-on-error: true | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- '7.2.5' | ||
- '7.3' | ||
- '7.4' | ||
- '8.0' | ||
|
||
steps: | ||
- name: "Checkout code" | ||
uses: actions/[email protected] | ||
|
||
- name: "Install PHP with extensions" | ||
uses: shivammathur/[email protected] | ||
with: | ||
coverage: "none" | ||
php-version: ${{ matrix.php-version }} | ||
ini-values: memory_limit=-1 | ||
tools: composer:v2 | ||
|
||
- name: "Add PHPUnit matcher" | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
|
||
- name: "Set composer cache directory" | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: "Cache composer" | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('composer.json') }} | ||
restore-keys: ${{ runner.os }}-${{ matrix.php-version }}-composer- | ||
|
||
- run: composer install | ||
|
||
- name: "Install PHPUnit" | ||
run: vendor/bin/simple-phpunit install | ||
|
||
- name: "PHPUnit version" | ||
run: vendor/bin/simple-phpunit --version | ||
|
||
- name: "Run tests" | ||
run: vendor/bin/simple-phpunit | ||
|
||
integration-tests: | ||
needs: | ||
- 'tests' | ||
|
||
name: "Integration tests with PHP ${{ matrix.php-version }}" | ||
|
||
runs-on: 'ubuntu-20.04' | ||
|
||
continue-on-error: true | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- '7.3' | ||
|
||
steps: | ||
- name: "Checkout code" | ||
uses: actions/[email protected] | ||
|
||
- name: "Install PHP with extensions" | ||
uses: shivammathur/[email protected] | ||
with: | ||
coverage: "none" | ||
extensions: "gd, pdo_sqlite" | ||
php-version: ${{ matrix.php-version }} | ||
ini-values: memory_limit=-1 | ||
tools: composer:v2 | ||
|
||
- run: ./drupal_test.sh | ||
shell: "bash" |
This file was deleted.
Oops, something went wrong.