-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.03 KB
/
linter.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
35
36
37
38
39
# Name of workflow
name: Linter
# Trigger the workflow on push or pull request
on: push
jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
make-lint:
# Name the Job
name: Runs linter from global
# Set the type of machine to run on
runs-on: ubuntu-latest
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v2
# Step's name
- name: Use Node.js ${{ matrix.node-version }}
# Configures the node version used on GitHub-hosted runners
# https://github.com/actions/setup-node
uses: actions/setup-node@v1
# The Node.js version to configure
with:
node-version: ${{ matrix.node-version }}
- name: npm install
# Install project
run:
make install
# Add environment variables
env:
CI: true
# Runs the Linter action
- name: Run Linter
run:
make lint