opf/openproject

View on GitHub
.github/workflows/openapi.yaml

Summary

Maintainability
Test Coverage
name: "OpenAPI"
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests
on:
  push:
    branches:
      - dev
      - release/*
    paths:
      - 'docs/api/apiv3/**'
  pull_request:
    types: [opened, reopened, synchronize]
    paths:
      - 'docs/api/apiv3/**'

jobs:
  api-spec:
    name: APIv3 specification (OpenAPI 3.0)
    if: github.repository == 'opf/openproject'
    runs-on: [ubuntu-latest]
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        bundler-cache: true
    - uses: actions/setup-node@v2
      with:
        node-version: '20'
    - run: ./script/api/validate_spec