Skip to content

Commit 943e098

Browse files
Merge pull request #75 from Shopify/more-thorough-ci
More thorough CI action
2 parents 7e48d7f + fdee919 commit 943e098

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +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
27+
28+
- name: Run TypeScript type checking
29+
run: npx tsc --noEmit
30+
31+
- name: Run ESLint
32+
run: npm run lint
33+
34+
- name: Validate Prisma
35+
run: npx prisma generate && npx prisma validate
36+
37+
- name: Build application
38+
run: npm run build

0 commit comments

Comments
 (0)