Skip to content

Commit fdee919

Browse files
Better CI Name
1 parent 7408c19 commit fdee919

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,35 @@ name: CI
44

55
jobs:
66
CI:
7-
name: ${{ matrix.install }} on ${{ matrix.node }}
7+
name: Node ${{ matrix.node }} and ${{ matrix.manager }}
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
1111
node: [20.19.0, 22, 24]
12-
install: ['npm install', 'yarn install', 'pnpm install']
12+
manager: ['npm', 'yarn', 'pnpm']
1313
steps:
1414
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1515
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
1616
with:
1717
node-version: ${{ matrix.node }}
1818

1919
- name: Install pnpm
20-
if: ${{ matrix.install == 'pnpm install' }}
20+
if: ${{ matrix.manager == 'pnpm' }}
2121
uses: pnpm/action-setup@v4
2222
with:
2323
version: 8
2424

25-
- name: Install dependencies using ${{ matrix.install }}
26-
run: ${{ matrix.install }}
25+
- name: Install dependencies using ${{ matrix.manager }}
26+
run: ${{ matrix.manager }} install
2727

2828
- name: Run TypeScript type checking
2929
run: npx tsc --noEmit
3030

3131
- name: Run ESLint
3232
run: npm run lint
3333

34-
- name: Validate Prisma schema
35-
run: npx prisma validate
36-
37-
- name: Generate Prisma client
38-
run: npx prisma generate
34+
- name: Validate Prisma
35+
run: npx prisma generate && npx prisma validate
3936

4037
- name: Build application
4138
run: npm run build

0 commit comments

Comments
 (0)