-
Notifications
You must be signed in to change notification settings - Fork 23
34 lines (31 loc) · 984 Bytes
/
eslint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: eslint
# Run this workflow every time a new commit pushed to your repository
on: push
jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
eslint:
# Name the Job
name: Run eslint
# Set the type of machine to run on
runs-on: ubuntu-latest
steps:
- name: Install ubuntu requirements
run: |
sudo apt-get -qq update
sudo apt-get install -y libx11-dev libxss-dev icnsutils graphicsmagick libappindicator1 libxtst-dev
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Setup code
run: npm ci
- name: Run eslint
run: npm run eslint-all