Skip to content

Commit 69f4032

Browse files
authored
chore: migrate fast and simple actions to ubuntu-slim runner (#95)
## Description <!-- Provide a brief description of your changes --> **Note:** PR titles should follow [Conventional Commits](https://www.conventionalcommits.org/) format (e.g., `feat(devbox): add support for custom env vars` or `fix(snapshot): resolve pagination issue`) as they are used for automatic release notes generation. ## Type of Change <!-- Mark the relevant option with an 'x' --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Documentation update - [ ] Code refactoring - [ ] Performance improvement - [ ] Test updates ## Related Issues <!-- Link to related issues using #issue-number --> Closes # ## Changes Made <!-- Describe the changes in detail --> ## Testing <!-- Describe how you tested your changes --> - [ ] I have tested locally - [ ] I have added/updated tests - [ ] All existing tests pass ## Checklist - [ ] My code follows the code style of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published ## Screenshots (if applicable) <!-- Add screenshots to help explain your changes --> ## Additional Notes <!-- Any additional information that reviewers should know -->
1 parent a77e558 commit 69f4032

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
format:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-slim
1313
# Run from pull_request for non-release-please branches, or pull_request_target for release-please branches only
1414
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'
1515
steps:
@@ -37,7 +37,7 @@ jobs:
3737
run: pnpm run format:check
3838

3939
lint:
40-
runs-on: ubuntu-latest
40+
runs-on: ubuntu-slim
4141
# Run from pull_request for non-release-please branches, or pull_request_target for release-please branches only
4242
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'
4343
steps:
@@ -65,7 +65,7 @@ jobs:
6565
run: pnpm run lint
6666

6767
build:
68-
runs-on: ubuntu-latest
68+
runs-on: ubuntu-slim
6969
# Run from pull_request for non-release-please branches, or pull_request_target for release-please branches only
7070
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'
7171
steps:
@@ -93,7 +93,7 @@ jobs:
9393
run: pnpm run build
9494

9595
test:
96-
runs-on: ubuntu-latest
96+
runs-on: ubuntu-slim
9797
needs: build
9898
# Run from pull_request for non-release-please branches, or pull_request_target for release-please branches only
9999
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:
130130
retention-days: 7
131131

132132
ready-to-merge:
133-
runs-on: ubuntu-latest
133+
runs-on: ubuntu-slim
134134
needs: [format, lint, build, test]
135135
# Run from pull_request for non-release-please branches, or pull_request_target for release-please branches only
136136
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')

.github/workflows/pr-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
pr-title-check:
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-slim
1010
steps:
1111
- uses: amannn/action-semantic-pull-request@v6
1212
env:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010

1111
jobs:
1212
release:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-slim
1414
outputs:
1515
release_created: ${{ steps.release.outputs.release_created }}
1616
tag_name: ${{ steps.release.outputs.tag_name }}
@@ -24,7 +24,7 @@ jobs:
2424
publish:
2525
needs: release
2626
if: ${{ needs.release.outputs.release_created == 'true' }}
27-
runs-on: ubuntu-latest
27+
runs-on: ubuntu-slim
2828
permissions:
2929
contents: read
3030
id-token: write # Required for OIDC

0 commit comments

Comments
 (0)