Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

restore OpenAPI workflow

Markus Kahle19711ce5aee
diff --git a/.github/workflows/openapi.yaml b/.github/workflows/openapi.yaml
new file mode 100644
index 00000000000..8ff68ce878c
--- /dev/null
+++ b/.github/workflows/openapi.yaml
@@ -0,0 +1,28 @@
+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