DiscordTickets/.github/workflows/lint.yml
2021-05-25 20:51:21 +01:00

31 lines
788 B
YAML

name: eslint
on:
push:
branches:
- main
# pull_request:
# branches:
# - main
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