Skip to content

Commit

Permalink
chore: Simplify UI Github Actions (#56)
Browse files Browse the repository at this point in the history
* chore: Simply UI Github Actions

* chore: Fail CI on error
  • Loading branch information
dmohns authored Mar 6, 2024
1 parent 08e91d9 commit 9862b69
Showing 1 changed file with 3 additions and 40 deletions.
43 changes: 3 additions & 40 deletions .github/workflows/ui_linter.yml → .github/workflows/check-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,7 @@ on:
- main

jobs:
setup-node:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16.10.0

eslint-js:
needs: setup-node
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16.10.0

- name: Install Node.js dependencies
run: npm install
working-directory: ./Website/ui

- name: Run ESLint for JavaScript files
run: npx eslint ./src/**/*.js
working-directory: ./Website/ui
continue-on-error: true

eslint-vue:
needs: setup-node
eslint:
runs-on: ubuntu-latest

steps:
Expand All @@ -60,13 +25,11 @@ jobs:
run: npm install
working-directory: ./Website/ui

- name: Run ESLint for Vue files
run: npx eslint ./src/**/*.vue
- name: Run ESLint
run: npm run lint
working-directory: ./Website/ui
continue-on-error: true

build-production:
needs: setup-node
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 9862b69

Please sign in to comment.