Skip to content

Set up a minimal CI

Set up a minimal CI #9

Workflow file for this run

name: Linters

Check failure on line 1 in .github/workflows/linters.yaml

View workflow run for this annotation

GitHub Actions / Linters

Invalid workflow file

The workflow is not valid. .github/workflows/linters.yaml: (Line: 25, Col: 14, Idx: 462) - (Line: 25, Col: 15, Idx: 463): While parsing a tag, did not find expected tag URI.
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- '*'
jobs:
lint-git:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' # Makes sense only for pull requests
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: show
run: git log
- name: Check absence of fixup commits
run: ! git log | grep 'fixup!'
- name: Install gitlint
run: pip install --user requests gitlint
- name: Lint commit messages added to main
run: ~/.local/bin/gitlint --commits origin/${{ github.event.pull_request.base.ref }}..HEAD