Skip to content

Commit 45807c1

Browse files
committed
ci: clean up workflow files
1 parent 3d77389 commit 45807c1

File tree

3 files changed

+32
-14
lines changed

3 files changed

+32
-14
lines changed

.github/workflows/Bench.yaml

+10-13
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
name: Benchmark
22

3-
env:
4-
DEBUG: 'napi:*'
5-
APP_NAME: 'rspack-sources'
6-
MACOSX_DEPLOYMENT_TARGET: '10.13'
7-
# https://github.com/SchrodingerZhu/snmalloc-rs
8-
CACHE_FRIENDLY_OFFSET: 64
9-
10-
'on':
3+
on:
114
push:
125
branches:
136
- main
147
tags-ignore:
158
- '**'
169
paths-ignore:
1710
- '**/*.md'
18-
- LICENSE
19-
- '**/*.gitignore'
20-
- .editorconfig
21-
- docs/**
22-
pull_request: null
11+
pull_request:
12+
types: [opened, synchronize]
13+
paths-ignore:
14+
- '**/*.md'
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
18+
cancel-in-progress: ${{ github.ref_name != 'main' }}
19+
2320
jobs:
2421
benchmark:
2522
runs-on: ubuntu-latest

.github/workflows/Lint.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@ on:
66
- main
77
tags-ignore:
88
- '**'
9+
paths-ignore:
10+
- '**/*.md'
911
pull_request:
12+
types: [opened, synchronize]
13+
paths-ignore:
14+
- '**/*.md'
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
18+
cancel-in-progress: ${{ github.ref_name != 'main' }}
1019

1120
jobs:
1221
lint:

.github/workflows/Test.yaml

+13-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,19 @@ on:
66
- main
77
tags-ignore:
88
- '**'
9-
pull_request: null
9+
paths-ignore:
10+
- '**/*.md'
11+
pull_request:
12+
types: [opened, synchronize]
13+
paths-ignore:
14+
- '**/*.md'
15+
16+
pull_request:
17+
types: [opened, synchronize]
18+
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
21+
cancel-in-progress: ${{ github.ref_name != 'main' }}
1022

1123
jobs:
1224
Test:

0 commit comments

Comments
 (0)