-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (37 loc) · 917 Bytes
/
ci.yaml
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
name: ci
on:
push:
branches: [main]
tags: ['v*']
pull_request:
branches: [main]
workflow_dispatch:
jobs:
ci:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [18, 20, 22]
steps:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: checkout
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.tmp
.tmp
key: ${{ runner.os }}-connect-playwright-es-ci-${{ hashFiles('turbo.json') }}
restore-keys: |
${{ runner.os }}-connect-playwright-es-ci-
- name: Install dependencies
run: npm ci
- name: Run CI
run: npm run all
- name: Check Diff
id: checkdiff
run: |
[[ -z $(git status --porcelain | tee /dev/stderr) ]] || exit 1