Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug CI segfault #101

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 46 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "Coverage"

on:
pull_request:
# pull_request:

push:
branches: ["*"]
Expand All @@ -10,6 +10,48 @@ on:
- cron: "0 8 * * 1"

jobs:
coverage:
name: "Nette Tester"
uses: contributte/.github/.github/workflows/nette-tester-coverage.yml@v1
tests:
name: "Nette Tester (8.1)"
runs-on: "ubuntu-latest"

steps:
- name: "Checkout"
uses: "actions/checkout@v3"

# https://github.com/contributte/.github/blob/02ddb5983be5febc498e5e3e6871230678691dc2/.github/actions/setup-php/action.yml
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
extensions: "json"
tools: "composer:v2"
ini-values: "zend.assertions=1, assert.exception=1"
coverage: "xdebug"
env:
# https://github.com/shivammathur/setup-php#debug-build-setup
debug: true

- name: "Composer"
uses: "contributte/.github/.github/actions/setup-composer@v1"
with:
command: "composer update --no-interaction --no-progress --prefer-dist --prefer-stable"

- run: |
echo 'export DEBUGINFOD_URLS="https://debuginfod.ubuntu.com"' >> ~/.bashrc
sudo apt install gdb systemd-coredump
echo 'set debuginfod enabled on' >> ~/.gdbinit

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3

- name: "Run Nette Tester"
run: "make coverage"

- name: "Coveralls.io"
env:
CI_NAME: github
CI: true
COVERALLS_REPO_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.7.0/php-coveralls.phar
php php-coveralls.phar --verbose --config tests/.coveralls.yml
Loading