diff --git a/.github/workflows/ci-cd-pipeline.yml b/.github/workflows/ci-cd-pipeline.yml new file mode 100644 index 00000000..76a33f96 --- /dev/null +++ b/.github/workflows/ci-cd-pipeline.yml @@ -0,0 +1,16 @@ +name: CI/CD Status +run-name: Full CI/CD Pipeline + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + workflow_dispatch: + +jobs: + trigger-full-ci: + name: CI + uses: ./.github/workflows/lint-and-build.yml + with: + node-version: "22.4.1" \ No newline at end of file diff --git a/.github/workflows/lint-and-build.yml b/.github/workflows/lint-and-build.yml index a0a3b7f1..f3aafb25 100644 --- a/.github/workflows/lint-and-build.yml +++ b/.github/workflows/lint-and-build.yml @@ -1,16 +1,17 @@ name: Lint & Build -run-name: Full CI/CD Pipeline +run-name: Lint & Build on: - push: - branches: ["main"] - pull_request: - branches: ["main"] - workflow_dispatch: + workflow_call: + inputs: + node-version: + description: "Node.js version to use" + required: true + type: string jobs: lint: - name: Lint + name: Run Lint runs-on: ubuntu-latest steps: - name: Checkout code