mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-13 23:53:08 +02:00
31 lines
788 B
YAML
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
|