add eslint

This commit is contained in:
Dennis Eichhorn 2022-04-04 18:06:15 +02:00 committed by GitHub
parent 4d7d0ceb7c
commit bfb10086eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: CI/CD
on: [push]
jobs:
codestyle-tests:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'NO_CI')"
steps:
- name: Checkout Repository
uses: actions/checkout@master
with:
fetch-depth: 1
- name: Checkout Build Repository
uses: actions/checkout@master
with:
fetch-depth: 1
ref: develop
repository: Karaka/Build
path: Build
- name: Install NPM
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'npm'
- run: npm install
- name: eslint
run: npx eslint ./ -c Build/Config/.eslintrc.json