2021-04-11 01:09:09 +03:00
|
|
|
# Copyright 2019-2021 Tauri Programme within The Commons Conservancy
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
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'
|
2021-04-12 07:59:25 +03:00
|
|
|
- 'tooling/cli.js/**'
|
2021-04-23 07:34:54 +03:00
|
|
|
- 'tooling/api/**'
|
|
|
|
- 'tooling/create-tauri-app/**'
|
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'
|
2021-04-23 07:34:54 +03:00
|
|
|
- name: install cli.js deps via yarn
|
2021-04-12 07:59:25 +03:00
|
|
|
working-directory: ./tooling/cli.js/
|
2020-07-15 14:14:11 +03:00
|
|
|
run: yarn
|
2021-04-23 07:34:54 +03:00
|
|
|
- name: run cli.js lint
|
2021-04-12 07:59:25 +03:00
|
|
|
working-directory: ./tooling/cli.js/
|
2020-07-15 14:14:11 +03:00
|
|
|
run: yarn lint
|
2021-04-23 07:34:54 +03:00
|
|
|
- name: run cli.js format
|
2021-04-12 07:59:25 +03:00
|
|
|
working-directory: ./tooling/cli.js/
|
2020-08-19 05:36:46 +03:00
|
|
|
run: yarn format:check
|
2021-04-23 07:34:54 +03:00
|
|
|
|
|
|
|
- name: install api deps via yarn
|
|
|
|
working-directory: ./tooling/api/
|
|
|
|
run: yarn
|
|
|
|
- name: run api lint
|
|
|
|
working-directory: ./tooling/api/
|
|
|
|
run: yarn lint
|
|
|
|
- name: run api format
|
|
|
|
working-directory: ./tooling/api/
|
|
|
|
run: yarn format:check
|
|
|
|
|
|
|
|
- name: install create-tauri-app deps via yarn
|
|
|
|
working-directory: ./tooling/create-tauri-app/
|
|
|
|
run: yarn
|
|
|
|
- name: run create-tauri-app lint
|
|
|
|
working-directory: ./tooling/create-tauri-app/
|
|
|
|
run: yarn lint
|
|
|
|
- name: run create-tauri-app format
|
|
|
|
working-directory: ./tooling/create-tauri-app/
|
|
|
|
run: yarn format:check
|