From c4ee28a56714f8bd1c8aa8c3fb5bf21b7c7ff528 Mon Sep 17 00:00:00 2001 From: chrypnotoad Date: Mon, 10 Jun 2024 08:55:05 -0500 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..58d5b64b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: Node CI Workflow +# The parameters are defaulted at the org level but can be overridden on the repository. +on: + push: + branches: + - dev + - main + pull_request: + branches: + - dev + - main + workflow_dispatch: + inputs: + workflowBranch: + description: 'Branch of the reusable workflow. Defaults to main, select dev for testing only.' + required: true + default: 'main' + type: choice + options: + - dev + - main + +permissions: + issues: write + pull-requests: write + +jobs: + ci-dev: + if: ${{ github.event.inputs.workflowBranch == 'dev' }} + uses: shardeum/github-automation/.github/workflows/node-ci-shared.yml@dev + secrets: inherit + + ci-main: + if: ${{ github.event.inputs.workflowBranch == 'main' || !github.event.inputs.workflowBranch }} + uses: shardeum/github-automation/.github/workflows/node-ci-shared.yml@main + secrets: inherit