-
Notifications
You must be signed in to change notification settings - Fork 0
/
client-lint.yml
39 lines (35 loc) · 862 Bytes
/
client-lint.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
# This action will lint a JavaScript/TypeScript application
# Example of usage:
# es-lint:
# name: ES Lint
# uses: ./.github/workflows/lint.yml
name: Lint client
on:
workflow_call:
inputs:
node-version:
description: "The version of Node"
required: false
type: string
default: "16.x"
runs-on:
required: false
type: string
default: "ubuntu-latest"
description: "The hosted runner"
jobs:
run:
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}
cache: "yarn"
- name: Install modules
run: yarn install
- name: Run ESLint
run: yarn run lint