Skip to content

issue-bot: write output into output-stream instead of plain echo #581

issue-bot: write output into output-stream instead of plain echo

issue-bot: write output into output-stream instead of plain echo #581

Workflow file for this run

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Build Issue Bot"
on:
pull_request:
paths:
- 'issue-bot/**'
- '.github/workflows/build-issue-bot.yml'
push:
branches:
- "2.2.x"
paths:
- 'issue-bot/**'
- '.github/workflows/build-issue-bot.yml'
concurrency:
group: build-issue-bot-${{ github.head_ref || github.run_id }} # will be canceled on subsequent pushes in pull requests but not branches
cancel-in-progress: true
permissions:
contents: read
jobs:
build-issue-bot:
name: "Build Issue Bot"
runs-on: "ubuntu-latest"
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
script:
- "../bin/phpstan"
- "vendor/bin/phpunit"
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: "Install PHP"
uses: "shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc" # v2.37.1
with:
coverage: "none"
php-version: "8.5"
- uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0
- name: "Install issue-bot dependencies"
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0
with:
working-directory: "issue-bot"
- name: "Tests"
working-directory: "issue-bot"
run: ${{ matrix.script }}