Skip to content

Commit

Permalink
Merge pull request #2 from bump-sh-examples/add-super-lint
Browse files Browse the repository at this point in the history
Add super-lint to enable OpenAPI linting
  • Loading branch information
philsturgeon authored Feb 5, 2024
2 parents c2cb387 + 3351b26 commit 8f9d138
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lint

on: # yamllint disable-line rule:truthy
pull_request: {}
push:
branches: [main]
paths-ignore:
- 'README.md'

jobs:
build:
name: Lint
runs-on: ubuntu-latest

permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0

- name: Super-linter
uses: super-linter/[email protected]
env:
DEFAULT_BRANCH: main
VALIDATE_OPENAPI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 0 additions & 2 deletions openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
openapi: 3.1.0

# Metadata about the API
info:
title: Train Travel API
description: API for finding and booking train trips across Europe.
Expand Down

0 comments on commit 8f9d138

Please sign in to comment.