mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 15:02:54 +00:00
chore: pre-commit automation
Inherited from https://github.com/rpm-software-management/mock
This commit is contained in:
parent
7c6623206d
commit
042f4eb041
3 changed files with 73 additions and 0 deletions
16
.github/workflows/python-diff-lint.yml
vendored
Normal file
16
.github/workflows/python-diff-lint.yml
vendored
Normal file
|
@ -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
|
24
.github/workflows/shell-diff-lint.yml
vendored
Normal file
24
.github/workflows/shell-diff-lint.yml
vendored
Normal file
|
@ -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 }}
|
33
.packit.yaml
Normal file
33
.packit.yaml
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue