-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.11 KB
/
build.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
name: Build
on:
pull_request:
branches:
- main
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v3
- name: Verify README generation
uses: momentohq/standards-and-practices/github-actions/oss-readme-template@gh-actions-v1
with:
project_status: official
project_stability: alpha
project_type: other
test-momento:
strategy:
matrix:
node: [16, 18, 19]
name: Test on Node ${{ matrix.node }}
runs-on: macos-latest
env:
MOMENTO_AUTH_TOKEN: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}
CACHE_NAME: js-keyv-client-test-ci
steps:
- name: Setup repo
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Install dependencies
run: |
npm ci
node -v
- name: Build
run: npm run build
- name: Lint
run: npm run lint
- name: Test using a Momento backend
run: npm run test