tauri/.github/workflows/js-lint.yml
2021-04-12 01:59:25 -03:00

30 lines
727 B
YAML

# Copyright 2019-2021 Tauri Programme within The Commons Conservancy
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: MIT
name: eslint check
on:
pull_request:
paths:
- '.github/workflows/js-lint.yml'
- 'tooling/cli.js/**'
jobs:
eslint-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12'
- name: install deps via yarn
working-directory: ./tooling/cli.js/
run: yarn
- name: run eslint
working-directory: ./tooling/cli.js/
run: yarn lint
- name: run prettier
working-directory: ./tooling/cli.js/
run: yarn format:check