-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (40 loc) · 1.05 KB
/
ci-e2e-static-checks.yml
File metadata and controls
47 lines (40 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI E2E static checks
run-name: CI E2E static checks
on:
pull_request:
paths:
- "e2e/**"
push:
branches:
- main
workflow_dispatch:
jobs:
static-checks:
name: ${{ matrix.check.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
check:
- name: Format
command: make e2e-format-check-native
- name: Typecheck
command: make e2e-type-check-native
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Cache Node.js dependencies
id: cache-node
uses: actions/cache@v4
with:
path: e2e/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
if: steps.cache-node.outputs.cache-hit != 'true'
run: make e2e-setup-ci
- name: ${{ matrix.check.name }}
run: ${{ matrix.check.command }}