-
-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (45 loc) · 1006 Bytes
/
test.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
48
49
50
51
52
53
name: test
on:
push:
branches:
- 'main'
pull_request:
branches:
- '**'
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
services:
redis:
image: redis:7.2.1-alpine3.18
ports:
- 6379:6379
srh:
image: hiett/serverless-redis-http:latest
env:
SRH_MODE: env
SRH_TOKEN: example_token
SRH_CONNECTION_STRING: 'redis://redis:6379'
ports:
- '8079:80'
strategy:
matrix:
node: ['18', '20']
name: node.js_${{ matrix.node }}_test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: install
run: yarn install --frozen-lockfile
- name: check format
run: yarn format
- name: lint
run: yarn lint
- name: test
run: yarn test
- name: build
run: yarn build