make new pr comment for every run #105
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
name: ci | |
on: | |
push: | |
branches: ['**'] | |
paths-ignore: | |
- "*.md" | |
pull_request: | |
branches: [main] | |
paths: | |
- "action.yml" | |
- "pkgruft-action" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Checkout shared testdata | |
uses: actions/checkout@v4 | |
with: | |
repository: pkgcraft/pkgcraft-testdata | |
path: testdata | |
- name: Run against repo with invalid ebuilds | |
env: | |
_PKGCRUFT_ACTION_EXIT_STATUS: 2 | |
uses: ./ | |
with: | |
repo: testdata/repos/valid/bad | |
- name: Run against qa-primary repo | |
env: | |
_PKGCRUFT_ACTION_EXIT_STATUS: 0 | |
uses: ./ | |
with: | |
repo: testdata/repos/valid/qa-primary | |
- name: Patch qa-primary repo | |
working-directory: testdata/repos/valid/qa-primary | |
run: | | |
for file in $(find -name '*.patch'); do | |
dir=${file%/*} | |
patch=${file##*/} | |
pushd "${dir}" > /dev/null | |
patch -p1 -F0 < "${patch}" | |
popd > /dev/null | |
done | |
- name: Run against patched qa-primary repo | |
env: | |
_PKGCRUFT_ACTION_EXIT_STATUS: 0 | |
uses: ./ | |
with: | |
repo: testdata/repos/valid/qa-primary |