Skip to content

Commit cafe9b9

Browse files
committed
Rename labels of new GitHub CI
1 parent b7ec31d commit cafe9b9

File tree

2 files changed

+37
-38
lines changed

2 files changed

+37
-38
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
1-
name: "Setup pnpm cache"
2-
description: "Setups pnpm cache by installing Node.js and pnpm, and getting the pnpm store directory."
1+
name: Setup pnpm with cache
32

43
runs:
5-
using: "composite"
4+
using: 'composite'
65
steps:
7-
- uses: pnpm/action-setup@v2
8-
name: Install pnpm
6+
- name: Install Node.js
7+
uses: actions/setup-node@v3
8+
with:
9+
node-version: 18
10+
11+
- name: Install pnpm
12+
uses: pnpm/action-setup@v2
913
id: pnpm-install
1014
with:
1115
version: 8
1216
run_install: false
1317

14-
- name: Install Node.js
15-
uses: actions/setup-node@v3
16-
with:
17-
node-version: 16
18-
19-
- name: Get pnpm store directory
18+
- name: Get store directory
2019
id: pnpm-cache
2120
shell: bash
2221
run: |
2322
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
2423
25-
- uses: actions/cache@v3
26-
name: Setup pnpm cache
24+
- name: Setup pnpm cache
25+
uses: actions/cache@v3
2726
with:
2827
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
2928
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
3029
restore-keys: |
3130
${{ runner.os }}-pnpm-store-
3231
33-
- name: Install dependencies
34-
shell: "bash"
32+
- name: Install packages
33+
shell: 'bash'
3534
run: pnpm install
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Node.js CI
1+
name: CI
22

33
on:
44
push:
@@ -7,72 +7,72 @@ on:
77

88
jobs:
99
install:
10-
name: Checkout and Install
10+
name: Install packages
1111
runs-on: ubuntu-latest
1212

1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v3
16-
- name: PNPM Install With Cache
17-
uses: ./.github/actions/pnpm-install-with-cache
16+
- name: Setup pnpm
17+
uses: ./.github/actions/pnpm
1818

1919
lint_website:
20-
name: Run linter in website
20+
name: Run ESLint in website
2121
needs: install
2222
runs-on: ubuntu-latest
2323

2424
steps:
2525
- name: Checkout
2626
uses: actions/checkout@v3
27-
- name: PNPM Install With Cache
28-
uses: ./.github/actions/pnpm-install-with-cache
27+
- name: Setup pnpm
28+
uses: ./.github/actions/pnpm
2929

30-
- name: Run lint check
30+
- name: ESLint check
3131
run: pnpm lint
3232
working-directory: website
3333

3434
format_website:
35-
name: Run formatter in website
35+
name: Run Prettier in website
3636
needs: install
3737
runs-on: ubuntu-latest
3838

3939
steps:
4040
- name: Checkout
4141
uses: actions/checkout@v3
42-
- name: PNPM Install With Cache
43-
uses: ./.github/actions/pnpm-install-with-cache
42+
- name: Setup pnpm
43+
uses: ./.github/actions/pnpm
4444

45-
- name: Run format check
45+
- name: Prettier check
4646
run: pnpm format.check
4747
working-directory: website
4848

4949
lint_library:
50-
name: Run linter in library
50+
name: Run ESLint in library
5151
needs: install
5252
runs-on: ubuntu-latest
5353

5454
steps:
5555
- name: Checkout
5656
uses: actions/checkout@v3
57-
- name: PNPM Install With Cache
58-
uses: ./.github/actions/pnpm-install-with-cache
57+
- name: Setup pnpm
58+
uses: ./.github/actions/pnpm
5959

60-
- name: Run lint check
60+
- name: ESLint check
6161
run: pnpm lint
6262
working-directory: library
6363

6464
format_library:
65-
name: Run formatter in library
65+
name: Run Prettier in library
6666
needs: install
6767
runs-on: ubuntu-latest
6868

6969
steps:
7070
- name: Checkout
7171
uses: actions/checkout@v3
72-
- name: PNPM Install With Cache
73-
uses: ./.github/actions/pnpm-install-with-cache
72+
- name: Setup pnpm
73+
uses: ./.github/actions/pnpm
7474

75-
- name: Run format check
75+
- name: Prettier check
7676
run: pnpm format.check
7777
working-directory: library
7878

@@ -84,9 +84,9 @@ jobs:
8484
steps:
8585
- name: Checkout
8686
uses: actions/checkout@v3
87-
- name: PNPM Install With Cache
88-
uses: ./.github/actions/pnpm-install-with-cache
87+
- name: Setup pnpm
88+
uses: ./.github/actions/pnpm
8989

90-
- name: Run Vitest
90+
- name: Vitest tests
9191
run: pnpm test
9292
working-directory: library

0 commit comments

Comments
 (0)