diff --git a/.github/workflows/python-diff-lint.yml b/.github/workflows/python-diff-lint.yml new file mode 100644 index 0000000..430173d --- /dev/null +++ b/.github/workflows/python-diff-lint.yml @@ -0,0 +1,16 @@ +--- +name: Lint Python issues + +on: + pull_request: + branches: [main] + +jobs: + python-lint-job: + runs-on: ubuntu-latest + steps: + - name: Repository checkout + uses: actions/checkout@v3 + + - name: VCS Diff Lint + uses: fedora-copr/vcs-diff-lint-action@v1 diff --git a/.github/workflows/shell-diff-lint.yml b/.github/workflows/shell-diff-lint.yml new file mode 100644 index 0000000..269db28 --- /dev/null +++ b/.github/workflows/shell-diff-lint.yml @@ -0,0 +1,24 @@ +--- +name: Lint Shell issues + +on: + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + shell-lint-job: + runs-on: ubuntu-latest + + steps: + - name: Repository checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Differential ShellCheck + uses: redhat-plumbers-in-action/differential-shellcheck@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..4af479a --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,33 @@ +# See the documentation for more information: +# https://packit.dev/docs/configuration/ +--- +specfile_path: dist-git.spec +upstream_package_name: dist-git +downstream_package_name: dist-git +upstream_tag_template: 'dist-git-{version}' +srpm_build_deps: + - tito + - git +actions: + create-archive: + - bash -c "tito build --tgz --test -o ." + - bash -c "ls -1t ./*.tar.gz | head -n 1" + get-current-version: + - bash -c "git describe --match dist-git-[0-9]* --abbrev=0 HEAD | egrep -o [0-9]+\.[0-9]+" + +jobs: + - &copr + job: copr_build + trigger: pull_request + metadata: + targets: + - fedora-all + - epel-8 + - epel-9 + + - <<: *copr + trigger: commit + metadata: + owner: "@copr" + project: "copr-dev" + branch: main