DiscordTickets/.github/workflows/lint.yml

29 lines
764 B
YAML
Raw Normal View History

2021-05-22 15:27:12 +03:00
name: eslint
on:
- push:
branches:
- master
- pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Cache pnpm modules
uses: actions/cache@v2
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.3.0
run_install: false
- run: pnpm install eslint
- run: pnpm run lint