2020-07-15 14:14:11 +03:00
|
|
|
name: eslint check
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2020-07-16 02:05:07 +03:00
|
|
|
- '.github/workflows/js-lint.yml'
|
2020-07-16 02:39:28 +03:00
|
|
|
- 'cli/tauri.js/**'
|
2020-07-15 14:14:11 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
eslint-check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
2020-08-19 05:36:46 +03:00
|
|
|
with:
|
|
|
|
node-version: '12'
|
2020-07-15 14:14:11 +03:00
|
|
|
- name: install deps via yarn
|
2020-08-19 05:36:46 +03:00
|
|
|
working-directory: ./cli/tauri.js/
|
2020-07-15 14:14:11 +03:00
|
|
|
run: yarn
|
|
|
|
- name: run eslint
|
2020-08-19 05:36:46 +03:00
|
|
|
working-directory: ./cli/tauri.js/
|
2020-07-15 14:14:11 +03:00
|
|
|
run: yarn lint
|
2020-08-19 05:36:46 +03:00
|
|
|
- name: run prettier
|
|
|
|
working-directory: ./cli/tauri.js/
|
|
|
|
run: yarn format:check
|