Add tmt lint workflow #4
Workflow file for this run
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: 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 |