Skip to content

Merge pull request #356 from konflux-ci/konflux/mintmaker/main/regist… #2132

Merge pull request #356 from konflux-ci/konflux/mintmaker/main/regist…

Merge pull request #356 from konflux-ci/konflux/mintmaker/main/regist… #2132

Workflow file for this run

---
name: Test and Lint
on: # yamllint disable-line rule:truthy
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, labeled]
workflow_dispatch:
jobs:
tox:
name: Run unit tests and linters
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2
- name: Install Poetry
uses: snok/install-poetry@v1.4.1
- name: Install dependencies
run: |
poetry install --no-interaction --no-root
- name: Install Hadolint and Oras via Brew
run: |
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
/home/linuxbrew/.linuxbrew/bin/brew install hadolint oras
sudo ln -s /home/linuxbrew/.linuxbrew/bin/hadolint /usr/bin/
sudo ln -s /home/linuxbrew/.linuxbrew/bin/oras /usr/bin/
- name: Run Tests
run: |
poetry run tox run --skip-env test-integration
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit-tests
files: ./coverage.xml
fail_ci_if_error: false
commitlint:
name: Conventional Commit Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2
- uses: webiny/action-conventional-commits@v1.3.0