You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3
+
4
+
name: Node.js CI
2
5
3
6
on:
4
-
workflow_dispatch: # 允许手动触发工作流,默认是不开启的
5
-
push: # 当有代码推送到仓库时触发
6
-
branches:
7
-
- main
7
+
push:
8
+
branches: [ "main" ]
9
+
pull_request:
10
+
branches: [ "main" ]
8
11
9
12
jobs:
10
-
build: # 工作流程中的一个作业
11
-
runs-on: ubuntu-latest # 指定运行作业的虚拟环境
13
+
build:
14
+
15
+
runs-on: ubuntu-latest
16
+
17
+
strategy:
18
+
matrix:
19
+
node-version: [22.x]
20
+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
0 commit comments