Merge pull request #6 from konflux-ci/appstudio-mobster-f7a65 #22
This file contains hidden or 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: 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/[email protected] | |
- name: Install Poetry | |
uses: snok/[email protected] | |
- name: Install dependencies | |
run: | | |
poetry install --no-interaction --no-root | |
- name: Install Hadolint 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 | |
sudo ln -s /home/linuxbrew/.linuxbrew/bin/hadolint /usr/bin/ | |
- name: Run Tests | |
run: | | |
poetry run tox | |
commitlint: | |
name: Conventional Commit Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- uses: webiny/[email protected] |