mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-28 07:51:20 +00:00
feat: Added GitHub Workflow for lint/deps checks
This commit is contained in:
parent
946ccb256d
commit
02d3b06eee
1 changed files with 37 additions and 0 deletions
37
.github/workflows/check.yaml
vendored
Normal file
37
.github/workflows/check.yaml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
name: Checks
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run-linters:
|
||||||
|
name: Run linters
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out Git repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
|
||||||
|
- name: Install Node.js dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Run linters
|
||||||
|
uses: wearerequired/lint-action@v2
|
||||||
|
with:
|
||||||
|
eslint: true
|
||||||
|
prettier: true
|
||||||
|
|
||||||
|
- name: Run dependency check
|
||||||
|
uses: tj-actions/depcheck@v9
|
||||||
|
with:
|
||||||
|
ignores: 'eslint,babel-*'
|
Loading…
Reference in a new issue