Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 1c3a551

Browse files
committed
🚿 CI update
1 parent dba62e7 commit 1c3a551

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
22
# https://github.com/sebastianbergmann/phpunit/blob/master/.github/workflows/ci.yml
33

4-
on:
5-
- pull_request
6-
- push
7-
84
name: "Continuous Integration"
95

6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
branches:
12+
- main
13+
1014
jobs:
1115

1216
static-code-analysis:
@@ -31,7 +35,7 @@ jobs:
3135
extensions: ast, curl, json, simplexml, zlib
3236

3337
- name: "Update dependencies with composer"
34-
run: composer update --no-interaction --no-ansi --no-progress --no-suggest
38+
run: composer update --no-interaction --no-ansi --no-progress --no-suggest --prefer-source
3539

3640
- name: "Run phan"
3741
run: php vendor/bin/phan
@@ -53,7 +57,7 @@ jobs:
5357

5458
steps:
5559
- name: "Configure git to avoid issues with line endings"
56-
if: runner.os == 'Windows'
60+
if: ${{ runner.os == 'Windows' }}
5761
run: git config --global core.autocrlf false
5862

5963
- name: "Checkout"
@@ -68,7 +72,7 @@ jobs:
6872
# ini-values:
6973

7074
- name: "Install dependencies with composer"
71-
run: composer update --no-ansi --no-interaction --no-progress --no-suggest
75+
run: composer update --no-ansi --no-interaction --no-progress --no-suggest --prefer-source
7276

7377
- name: "Run tests with phpunit"
7478
run: php vendor/phpunit/phpunit/phpunit --configuration=phpunit.xml.dist

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ matrix:
99
- php: nightly
1010

1111
install:
12-
- curl -o config/cacert.pem https://curl.haxx.se/ca/cacert.pem
13-
- travis_retry composer install --no-interaction --prefer-source
12+
- composer install --no-interaction --no-progress --no-suggest --prefer-source
1413

1514
script: vendor/bin/phpunit --configuration phpunit.xml.dist
1615

0 commit comments

Comments
 (0)