-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (38 loc) · 1.1 KB
/
ci.yml
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
48
49
50
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Test on node ${{ matrix.node-version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16, 18, 20]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v1
- name: Use gcloud CLI
run: gcloud info
- name: Update GCloud Components
run: gcloud components update --quiet
- name: Install GCloud beta
run: gcloud components install beta --quiet
- name: Install pubsub-emulator
run: gcloud components install pubsub-emulator --quiet
- name: Install dependencies
run: npm install
- name: Install @google-cloud/pubsub peer dependency
run: npm install --no-save @google-cloud/pubsub
- name: Run test
run: npm test