-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (48 loc) · 1.45 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
51
52
53
54
55
56
57
58
59
60
61
62
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 }}
timeout-minutes: 60
strategy:
matrix:
node-version: [16, 18, 20]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- uses: actions/setup-java@v4
with:
distribution: temurin
java-package: jre
java-version: 11
- name: Docker pull google/cloud-sdk:latest
run: docker pull --quiet google/cloud-sdk:latest
if: runner.os == 'Linux'
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
- 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 cloud-datastore-emulator
run: gcloud components install cloud-datastore-emulator --quiet
- name: Install dependencies
run: npm install
- name: Install @google-cloud/datastore peer dependency
run: npm install --no-save @google-cloud/datastore
- name: Run test
timeout-minutes: 15
run: npm test