1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 09:48:20 +08:00

Opt: AP preserve until reset

This commit is contained in:
sui-feng-cb
2025-09-03 13:59:51 +08:00
parent c3856ae101
commit 6b0383a169
137 changed files with 9982 additions and 13706 deletions

View File

@@ -1,33 +1,22 @@
name: Linters
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '**.js'
- '**.mjs'
- '**.cjs'
- '**.jsx'
- '**.ts'
- '**.mts'
- '**.cts'
- '**.tsx'
- '**.vue'
- '**.json'
- 'package-lock.json'
- '.github/workflows/lint.yml'
pull_request:
paths:
- '**.js'
- '**.mjs'
- '**.cjs'
- '**.jsx'
- '**.ts'
- '**.mts'
- '**.cts'
- '**.tsx'
- '**.vue'
- '**.json'
- 'package-lock.json'
- '.github/workflows/lint.yml'
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
@@ -38,28 +27,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16 # Need for npm >=7.7
cache: 'npm'
- run: npm ci
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
# TODO: Install not all dependencies, but only those required for this workflow
- name: Install dependencies
run: npm ci
- run: npm run lint --if-present
# This job just check code style for in-template contributions.
code-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16 # Need for npm >=7.7
cache: 'npm'
- run: npm i prettier
- run: npx prettier --check "**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json}"
- run: npm run lint