add CI stuff

This commit is contained in:
mrjvs
2023-09-13 23:08:44 +02:00
parent 95f0026f5a
commit c2ae6432ae
8 changed files with 169 additions and 2 deletions

52
.github/workflows/linting.yml vendored Normal file
View File

@@ -0,0 +1,52 @@
name: Linting and Testing
on:
push:
branches:
- master
- dev
pull_request:
jobs:
linting:
name: Run Linters
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install npm packages
run: npm install
- name: Prepare for linting
run: npm run prepare
- name: Run ESLint
run: npm lint
building:
name: Build project
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install npm packages
run: npm install
- name: Build Project
run: npm build