Skip to content

Commit 03e366e

Browse files
author
v_guanglwen
committed
feat: 测试
1 parent 73ac4be commit 03e366e

File tree

3 files changed

+24
-52
lines changed

3 files changed

+24
-52
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/pr-lint-check.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,34 @@ name: PR Lint Check
22

33
on:
44
pull_request:
5-
branches: [master]
5+
branches:
6+
- feat-pr-lint
7+
8+
concurrency:
9+
group: style-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
611

712
jobs:
813
lint:
914
runs-on: ubuntu-latest
1015
steps:
11-
- uses: actions/checkout@v2
12-
- name: Set up Node.js
13-
uses: actions/setup-node@v2
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Check changed files
20+
id: changed-files
21+
uses: tj-actions/changed-files@v44
22+
23+
- name: Setup NodeJS
24+
uses: actions/setup-node@v4
25+
if: steps.changed-files.outputs.any_changed == 'true'
1426
with:
15-
node-version: '16'
16-
- name: Install dependencies
27+
node-version: 20
28+
29+
- name: Web dependencies
30+
if: steps.changed-files.outputs.any_changed == 'true'
1731
run: npm install
18-
- name: Run lint
32+
33+
- name: Web style check
34+
if: steps.changed-files.outputs.any_changed == 'true'
1935
run: npm run lint

miniprogram/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const config = require('./config')
33
const themeListeners = []
44
global.isDemo = true
55
App({
6+
console.log('App Launch');
67

78
onLaunch(opts, data) {
89
const that = this

0 commit comments

Comments
 (0)