From b4f75137de97824a0943cefdec42946956a7e9ca Mon Sep 17 00:00:00 2001 From: Thomas Reggi Date: Sat, 20 Apr 2024 11:41:23 -0400 Subject: [PATCH] fixes check wf --- .github/workflows/check.yml | 41 ++++++++++++++++++++++++---- .github/workflows/dispatch-check.yml | 34 ----------------------- 2 files changed, 36 insertions(+), 39 deletions(-) delete mode 100644 .github/workflows/dispatch-check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index b7e5194..a4a2462 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,4 +1,4 @@ -name: Check Build +name: Check on: push: @@ -7,9 +7,40 @@ on: pull_request: branches: - main - + workflow_dispatch: + inputs: + branch: + description: 'Branch Name' + required: true + type: string + workflow_call: + inputs: + branch: + description: 'Branch Name' + required: true + type: string jobs: check: - uses: ./.github/workflows/dispatch-check.yml - with: - branch: main + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.event.inputs.branch || 'main' }} + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '20' # Set this to the node version you are using + + - name: Install dependencies + run: npm install + + - name: Run style check + run: npm run style + + - name: Run lintpkg + run: npm run lintpkg + + - name: Run Build + run: npm run build diff --git a/.github/workflows/dispatch-check.yml b/.github/workflows/dispatch-check.yml deleted file mode 100644 index 20d72da..0000000 --- a/.github/workflows/dispatch-check.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Style Check - -on: - workflow_dispatch: - inputs: - branch: - description: 'Branch name' - required: true - -jobs: - style-check: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.event.inputs.branch }} - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '20' # Set this to the node version you are using - - - name: Install dependencies - run: npm install - - - name: Run style check - run: npm run style - - - name: Run lintpkg - run: npm run lintpkg - - - name: Run Build - run: npm run build