mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-24 21:40:48 +02:00
* feat(tests): add api e2e tests * lockfile * mobile * try linux fix [skip ci] * ios fix * fix test on windows * improve cache * fix pnpm audit [skip ci]
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
# Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
name: Lint JavaScript
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- v1
|
|
- v2
|
|
paths:
|
|
- '.github/workflows/lint-javascript.yml'
|
|
- 'plugins/*/guest-js/**'
|
|
- 'packages/**'
|
|
- '.eslintignore'
|
|
- '.eslintrc.json'
|
|
- '.prettierignore'
|
|
- '**/package.json'
|
|
pull_request:
|
|
branches:
|
|
- v1
|
|
- v2
|
|
paths:
|
|
- '.github/workflows/lint-javascript.yml'
|
|
- 'plugins/*/guest-js/**'
|
|
- 'packages/**'
|
|
- '.eslintignore'
|
|
- '.eslintrc.json'
|
|
- '.prettierignore'
|
|
- '**/package.json'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
eslint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-node@v7
|
|
with:
|
|
node-version: 'lts/*'
|
|
- uses: pnpm/action-setup@v6
|
|
with:
|
|
run_install: true
|
|
cache: true # the pnpm store, keyed by OS and lockfile hash and shared by every workflow
|
|
# the type-checked lint rules (and packages/api-e2e) resolve the plugins'
|
|
# types from their dist-js build output
|
|
- name: build
|
|
run: pnpm build
|
|
- name: eslint
|
|
run: pnpm lint
|
|
- name: ts:check
|
|
run: pnpm ts:check
|