|
9 | 9 |
|
10 | 10 | jobs: |
11 | 11 | format: |
12 | | - runs-on: ubuntu-latest |
| 12 | + runs-on: ubuntu-slim |
13 | 13 | # Run from pull_request for non-release-please branches, or pull_request_target for release-please branches only |
14 | 14 | if: (github.event_name == 'pull_request' && !startsWith(github.event.pull_request.head.ref, 'release-please--')) || (github.event_name == 'pull_request_target' && startsWith(github.event.pull_request.head.ref, 'release-please--')) || github.event_name == 'workflow_dispatch' |
15 | 15 | steps: |
|
37 | 37 | run: pnpm run format:check |
38 | 38 |
|
39 | 39 | lint: |
40 | | - runs-on: ubuntu-latest |
| 40 | + runs-on: ubuntu-slim |
41 | 41 | # Run from pull_request for non-release-please branches, or pull_request_target for release-please branches only |
42 | 42 | if: (github.event_name == 'pull_request' && !startsWith(github.event.pull_request.head.ref, 'release-please--')) || (github.event_name == 'pull_request_target' && startsWith(github.event.pull_request.head.ref, 'release-please--')) || github.event_name == 'workflow_dispatch' |
43 | 43 | steps: |
|
65 | 65 | run: pnpm run lint |
66 | 66 |
|
67 | 67 | build: |
68 | | - runs-on: ubuntu-latest |
| 68 | + runs-on: ubuntu-slim |
69 | 69 | # Run from pull_request for non-release-please branches, or pull_request_target for release-please branches only |
70 | 70 | if: (github.event_name == 'pull_request' && !startsWith(github.event.pull_request.head.ref, 'release-please--')) || (github.event_name == 'pull_request_target' && startsWith(github.event.pull_request.head.ref, 'release-please--')) || github.event_name == 'workflow_dispatch' |
71 | 71 | steps: |
|
93 | 93 | run: pnpm run build |
94 | 94 |
|
95 | 95 | test: |
96 | | - runs-on: ubuntu-latest |
| 96 | + runs-on: ubuntu-slim |
97 | 97 | needs: build |
98 | 98 | # Run from pull_request for non-release-please branches, or pull_request_target for release-please branches only |
99 | 99 | if: (github.event_name == 'pull_request' && !startsWith(github.event.pull_request.head.ref, 'release-please--')) || (github.event_name == 'pull_request_target' && startsWith(github.event.pull_request.head.ref, 'release-please--')) || github.event_name == 'workflow_dispatch' |
@@ -130,7 +130,7 @@ jobs: |
130 | 130 | retention-days: 7 |
131 | 131 |
|
132 | 132 | ready-to-merge: |
133 | | - runs-on: ubuntu-latest |
| 133 | + runs-on: ubuntu-slim |
134 | 134 | needs: [format, lint, build, test] |
135 | 135 | # Run from pull_request for non-release-please branches, or pull_request_target for release-please branches only |
136 | 136 | if: always() && ((github.event_name == 'pull_request' && !startsWith(github.event.pull_request.head.ref, 'release-please--')) || (github.event_name == 'pull_request_target' && startsWith(github.event.pull_request.head.ref, 'release-please--')) || github.event_name == 'workflow_dispatch') |
|
0 commit comments