Skip to content

Commit b880235

Browse files
committed
separate format and typecheck jobs
1 parent 6664f1b commit b880235

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

.github/workflows/ci-e2e-static-checks.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010
- main
1111

1212
jobs:
13-
format-check:
14-
name: Format check
13+
format:
14+
name: Format
1515
runs-on: ubuntu-latest
1616

1717
steps:
@@ -37,5 +37,29 @@ jobs:
3737
- name: Check formatting
3838
run: make e2e-format-check-native
3939

40+
typecheck:
41+
name: Typecheck
42+
runs-on: ubuntu-latest
43+
44+
steps:
45+
- name: Checkout code
46+
uses: actions/checkout@v4
47+
48+
- name: Set up Node.js
49+
uses: actions/setup-node@v4
50+
with:
51+
node-version: lts/*
52+
53+
- name: Cache Node.js dependencies
54+
id: cache-node
55+
uses: actions/cache@v4
56+
with:
57+
path: e2e/node_modules
58+
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
59+
60+
- name: Install dependencies
61+
if: steps.cache-node.outputs.cache-hit != 'true'
62+
run: make e2e-setup-ci
63+
4064
- name: Check typing
4165
run: make e2e-type-check-native

0 commit comments

Comments
 (0)