forked from open-webui/open-webui
chore: check PRs for fmt, lint, & build
This commit is contained in:
parent
d188512263
commit
ee638329f1
2 changed files with 31 additions and 2 deletions
25
.github/workflows/node.js.yaml
vendored
Normal file
25
.github/workflows/node.js.yaml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: Node.js CI
|
||||
on:
|
||||
push:
|
||||
branches: ['main']
|
||||
pull_request:
|
||||
jobs:
|
||||
build:
|
||||
name: 'Fmt, Lint, & Build'
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version:
|
||||
- latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: node --version
|
||||
- run: npm clean-install
|
||||
- run: npm run fmt
|
||||
#- run: npm run lint
|
||||
#- run: npm run lint:types
|
||||
- run: npm run build
|
Loading…
Add table
Add a link
Reference in a new issue