Skip to content

Commit

Permalink
Add tmt lint workflow (#23)
Browse files Browse the repository at this point in the history
* Add tmt lint workflow

* Add missing GH org
  • Loading branch information
spetrosi authored Aug 8, 2024
1 parent bb3d5e6 commit b2d13a2
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Checkout postfix repo
uses: actions/checkout@v4
with:
repository: postfix
repository: ${{ github.repository_owner }}/postfix
ref: main

- name: Get memory
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/tmt_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: tmt Lint
on: # yamllint disable-line rule:truthy
pull_request:
merge_group:
branches:
- main
types:
- checks_requested
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
tmt_lint:
runs-on: ubuntu-latest
steps:
- name: Install podman
run: |
set -euxo pipefail
sudo apt update
sudo apt install -y podman
- name: Checkout repo
uses: actions/checkout@v4
with:
path: tft-tests

- name: Run tmt Lint
run: >
podman run -it
--volume ./tft-tests:/tft-tests:Z
--workdir /tft-tests
--rm quay.io/testing-farm/tmt
tmt lint

0 comments on commit b2d13a2

Please sign in to comment.