Skip to content

Commit

Permalink
ci: update workflow linter
Browse files Browse the repository at this point in the history
  • Loading branch information
uiolee committed Apr 6, 2024
1 parent b72b4e1 commit 67e2848
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
name: Linter

on: [push, pull_request]
on:
push:
branches:
- "master"
pull_request:

env:
default_node_version: 14

jobs:
linter:
name: Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Cache NPM dependencies
uses: actions/cache@v1
- uses: actions/checkout@v4
- name: Setup Node.js ${{env.default_node_version}} and Cache
uses: actions/setup-node@v4
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache
restore-keys: |
${{ runner.OS }}-npm-cache
node-version: ${{env.default_node_version}}
cache: npm
cache-dependency-path: "package.json"

- name: Install Dependencies
run: npm install
- name: Lint
run: |
npm run eslint
env:
CI: true
run: npm run eslint

0 comments on commit 67e2848

Please sign in to comment.