Skip to content

debug

debug #132

Workflow file for this run

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:
fetch-depth: 0
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