Skip to content

Commit

Permalink
Added github action to build OpenAPI documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
c8y3 committed Feb 3, 2025
1 parent 86f0813 commit a198bbe
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# IRIS Source Code
# Copyright (C) 2023 - DFIR-IRIS
# [email protected]
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 3 of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


name: Continuous Integration
on: [push, pull_request]

jobs:

build-api-docs:
name: OpenAPI documentation build
runs-on: ubuntu-22.04
steps:
- name: Check out
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: docs/api_reference/reference/package-lock.json
- name: Build API documentation
working-directory: docs/api_reference/reference
run: |
npm ci
npm run build

0 comments on commit a198bbe

Please sign in to comment.