Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Added lint tests and added ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDyakonov committed Aug 19, 2024
1 parent ef41932 commit 8cbe5d1
Show file tree
Hide file tree
Showing 5 changed files with 1,929 additions and 375 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/ci-tests-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@ on:
branches: [ "main", "dev" ]

jobs:

build:

runs-on: ubuntu-22.04

steps:
- name: Set short git commit SHA
run: |
echo "CI test complited"
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Install dependencies
run: npm install

# - uses: actions/checkout@v4
# - name: Build docker image
# run: docker-compose -f docker-compose.yaml build
- name: Run lint
run: npm run lint
18 changes: 18 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import globals from "globals";
import pluginJs from "@eslint/js";

export default [
{
files: ["**/*.js"],
languageOptions: {
sourceType: "commonjs",
globals: globals.node,
},
plugins: {
js: pluginJs,
},
rules: {
"no-unused-vars": "warn",
},
},
];
Loading

0 comments on commit 8cbe5d1

Please sign in to comment.