-
Notifications
You must be signed in to change notification settings - Fork 71
47 lines (47 loc) · 1.13 KB
/
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
43
44
45
46
47
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]
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 }}-protobuf-es-ci-${{ hashFiles('Makefile') }}
restore-keys: |
${{ runner.os }}-protobuf-es-ci-
- name: make
run: make ci
typescript-compat:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.tmp
.tmp
key: ${{ runner.os }}-protobuf-es-typescript-compat-${{ hashFiles('Makefile') }}
restore-keys: |
${{ runner.os }}-protobuf-es-typescript-compat-
- name: make
run: make test-ts-compat