Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 29 additions & 9 deletions .github/workflows/pr_validation_caller.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,49 @@
# =========================================================================================
# CAMARA Project - Pull Request Validation Workflow Caller
#
# This GitHub Actions workflow is responsible for invoking a reusable PR validation workflow
# from the camaraproject/tooling repository. It is intended to ensure consistent validation
# steps for all PRs targeting the main branch in this repository.
#
# CHANGELOG:
# - 2025-08-01: Initial version for v0
#
# USAGE:
# - Automatically triggers on pull requests targeting main.
# - Can be triggered manually via workflow_dispatch.
# - Calls by default the reusable workflow at
# camaraproject/tooling/.github/workflows/pr_validation.yml@v0
#
# DOCUMENTATION:
# see https://github.com/camaraproject/tooling/tree/main/linting/docs
# =========================================================================================

name: Caller for PR validation workflow
# CAMARA Project - Github Action for Pull Reqests
# This workflow calls the reusable workflow from the tooling repository
# initial version

on:
# Pull Requests to main
# Trigger on pull requests to the main branch only
pull_request:
branches: main
# manual workflow triggering
# Enable manual trigger via the GitHub UI
workflow_dispatch:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

permissions:
# Grant necessary write permissions for PRs, contents, and issues
pull-requests: write
contents: write
issues: write
statuses: write

jobs:
pr_validation:
uses: camaraproject/tooling/.github/workflows/pr_validation.yml@main
# Invoke the reusable PR validation workflow from "v0" tag of camaraproject/tooling
uses: camaraproject/tooling/.github/workflows/pr_validation.yml@v0
secrets: inherit
# This workflow calls the reusable workflow from tooling repository
# Tools configuration from the tooling repository branch indicated by `configurations` variable
# Tools configuration from the tooling repository subfolder of /linting/config/ indicated by `configurations` variable
# If needed, you can specify a configuration from another subfolder of camaraproject/tooling/linting/config/ (uncomment below)
# with:
# configurations: staging
# configurations: api-name
34 changes: 26 additions & 8 deletions .github/workflows/spectral-oas-caller.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
# =========================================================================================
# CAMARA Project - Linting OpenAPI Specification with CAMARA Ruleset Caller
#
# This GitHub Actions workflow is responsible for invoking a reusable "Spectral linting with
# CAMARA ruleset" workflow from the camaraproject/tooling repository. It is intended to
# provide more detailed output from Spectral tool (warnings, hints)
#
# CHANGELOG:
# - 2025-08-01: Initial version for v0
#
# USAGE:
# - Can be triggered manually via workflow_dispatch.
# - Calls by default the reusable workflow at
# camaraproject/tooling/.github/workflows/spectral-oas.yml@v0
#
# DOCUMENTATION:
# see https://github.com/camaraproject/tooling/tree/main/linting/docs
# =========================================================================================

name: Caller for Spectral linting with CAMARA ruleset
# CAMARA Project - Github Action for Pull Reqests
# This workflow calls the reusable workflow from the tooling repository
# initial version

on:
workflow_dispatch:
Expand All @@ -11,14 +27,16 @@ concurrency:
cancel-in-progress: true

permissions:
# Grant necessary write permissions for PRs and issues
pull-requests: write
contents: write
contents: read
issues: write

jobs:
spectral:
uses: camaraproject/tooling/.github/workflows/spectral-oas.yml@main
# This workflow calls the reusable workflow from the tooling repository
# Tools configuration from the tooling repository branch indicated by `configurations` variable
# Invoke the reusable PR validation workflow from the main branch of camaraproject/tooling
uses: camaraproject/tooling/.github/workflows/spectral-oas.yml@v0
# Spectral configuration from the tooling repository subfolder of /linting/config/ indicated by `configurations` variable
# If needed, you can specify a configuration from another subfolder of camaraproject/tooling/linting/config/ (uncomment below)
# with:
# configurations: staging
# configurations: api-name
78 changes: 0 additions & 78 deletions .github/workflows/temp/megalinter._yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/temp/spectral_oas_lint.yml

This file was deleted.