Skip to content

Commit

Permalink
Merge pull request #63 from mdenet/feature/test-lint
Browse files Browse the repository at this point in the history
Enabled linting
  • Loading branch information
barnettwilliam authored Feb 26, 2024
2 parents c9b62f4 + 44f9362 commit f3e2f3c
Show file tree
Hide file tree
Showing 5 changed files with 2,070 additions and 11 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: run-unit-tests

on: push

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup node 18
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install node dependencies
working-directory: ./xtext/editorserver
run: npm ci

- name: Code linting - Xtext Editor Server
working-directory: ./xtext/editorserver
run: npm run lint

- name: Create lint report - Xtext Editor Server
if: success() || failure()
uses: dorny/test-reporter@v1
with:
name: Lint Results - Xtext Editor Server
path: "xtext/editorserver/reports/lint-results.xml"
reporter: java-junit
fail-on-error: true
27 changes: 27 additions & 0 deletions xtext/editorserver/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
"env": {
"browser": false,
"node": true,
"es2021": true
},
"extends": "eslint:recommended",
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"rules": {
}
}
Loading

0 comments on commit f3e2f3c

Please sign in to comment.