Skip to content

Commit

Permalink
fixes check wf
Browse files Browse the repository at this point in the history
  • Loading branch information
reggi committed Apr 20, 2024
1 parent 531c105 commit b4f7513
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 39 deletions.
41 changes: 36 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check Build
name: Check

on:
push:
Expand All @@ -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
34 changes: 0 additions & 34 deletions .github/workflows/dispatch-check.yml

This file was deleted.

0 comments on commit b4f7513

Please sign in to comment.