Skip to content

Commit d36a43c

Browse files
committed
ci: switch to arm64 runners
From my experience, this gives ~20% performance boost, while being 17% cheaper.
1 parent dcd81b0 commit d36a43c

File tree

13 files changed

+160
-1090
lines changed

13 files changed

+160
-1090
lines changed

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permissions:
1515
jobs:
1616
code:
1717
name: 🤖 Autofix code
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-24.04-arm
1919

2020
steps:
2121
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ permissions:
2222
jobs:
2323
lint:
2424
name: 🔠 Lint project
25-
runs-on: ubuntu-latest
25+
runs-on: ubuntu-24.04-arm
2626

2727
steps:
2828
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -40,7 +40,7 @@ jobs:
4040

4141
types:
4242
name: 💪 Type check
43-
runs-on: ubuntu-latest
43+
runs-on: ubuntu-24.04-arm
4444

4545
steps:
4646
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -62,7 +62,7 @@ jobs:
6262

6363
unit:
6464
name: 🧪 Unit tests
65-
runs-on: ubuntu-latest
65+
runs-on: ubuntu-24.04-arm
6666

6767
steps:
6868
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -84,7 +84,7 @@ jobs:
8484

8585
test:
8686
name: 🧪 Component tests
87-
runs-on: ubuntu-latest
87+
runs-on: ubuntu-24.04-arm
8888

8989
steps:
9090
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -114,7 +114,7 @@ jobs:
114114

115115
browser:
116116
name: 🖥️ Browser tests
117-
runs-on: ubuntu-latest
117+
runs-on: ubuntu-24.04-arm
118118
container:
119119
image: mcr.microsoft.com/playwright:v1.58.0-noble
120120

@@ -141,7 +141,7 @@ jobs:
141141

142142
a11y:
143143
name: ♿ Accessibility audit
144-
runs-on: ubuntu-latest
144+
runs-on: ubuntu-latest # See https://github.com/GoogleChrome/lighthouse/discussions/16834
145145
strategy:
146146
matrix:
147147
mode: [dark, light]
@@ -172,7 +172,7 @@ jobs:
172172

173173
knip:
174174
name: 🧹 Unused code check
175-
runs-on: ubuntu-latest
175+
runs-on: ubuntu-24.04-arm
176176

177177
steps:
178178
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

.github/workflows/lunaria.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818
jobs:
1919
lunaria-overview:
2020
name: 🌝 Generate Lunaria Overview
21-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-24.04-arm
2222

2323
steps:
2424
- name: Checkout

app/components/Package/Card.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ const pkgDescription = useMarkdown(() => ({
4848
:prefetch-on="prefetch ? 'visibility' : 'interaction'"
4949
class="decoration-none scroll-mt-48 scroll-mb-6 after:content-[''] after:absolute after:inset-0"
5050
:data-result-index="index"
51+
aria-hidden="true"
5152
>{{ result.package.name }}</NuxtLink
5253
>
5354
<span
@@ -160,18 +161,19 @@ const pkgDescription = useMarkdown(() => ({
160161
<div
161162
v-if="result.package.keywords?.length"
162163
:aria-label="$t('package.card.keywords')"
163-
class="relative z-10 flex flex-wrap gap-1.5 mt-3 pt-3 border-t border-border list-none m-0 p-0 pointer-events-none items-center"
164+
class="relative z-10 flex flex-wrap gap-1.5 mt-3 pt-3 border-t border-border list-none m-0 p-0 pointer-events-none"
164165
>
165-
<TagButton
166+
<TagClickable
166167
v-for="keyword in result.package.keywords.slice(0, 5)"
167-
class="pointer-events-auto"
168168
:key="keyword"
169-
:pressed="props.filters?.keywords.includes(keyword)"
169+
type="button"
170+
class="pointer-events-auto"
171+
:status="props.filters?.keywords.includes(keyword) ? 'active' : 'default'"
170172
:title="`Filter by ${keyword}`"
171173
@click.stop="emit('clickKeyword', keyword)"
172174
>
173175
{{ keyword }}
174-
</TagButton>
176+
</TagClickable>
175177
<span
176178
v-if="result.package.keywords.length > 5"
177179
class="text-fg-subtle text-xs pointer-events-auto"

app/components/VersionSelector.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
getVersionGroupLabel,
1010
isSameVersionGroup,
1111
} from '~/utils/versions'
12-
import { fetchAllPackageVersions } from '~/utils/npm/api'
12+
import { fetchAllPackageVersions } from '~/composables/useNpmRegistry'
1313
1414
const props = defineProps<{
1515
packageName: string
@@ -546,7 +546,7 @@ watch(
546546
<span
547547
v-else
548548
class="w-3 h-3 transition-transform duration-200 rtl-flip"
549-
:class="group.isExpanded ? 'i-carbon:chevron-down' : 'i-carbon:chevron-right'"
549+
:class="group.isExpanded ? 'i:carbon:chevron-down' : 'i-carbon:chevron-right'"
550550
aria-hidden="true"
551551
/>
552552
</button>

0 commit comments

Comments
 (0)