Files
tauri-plugins-workspace/.github/workflows/lint-javascript.yml
T
Lucas Fernandes Nogueira 684feb2510 feat(tests): add api e2e tests (#3617)
* 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]
2026-09-22 18:58:14 -03:00

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