-
Notifications
You must be signed in to change notification settings - Fork 54
35 lines (33 loc) · 948 Bytes
/
test.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
name: Test
on: push
jobs:
test:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
services:
elasticmq:
image: s12v/elasticmq
options: -p 9324:9324 -v /tmp/elasticmq:/etc/elasticmq --name elasticmq
steps:
- uses: actions/checkout@v3
- run: sudo cp ${{ github.workspace }}/.github/build/elasticmq.conf /tmp/elasticmq
- name: Restart elasticmq
uses: docker://docker
with:
args: docker restart elasticmq
- name: Setup pnpm
uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
name: Use Node.js ${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install
- name: check lint
run: pnpm run lint
- name: test
env:
SQS_ENDPOINT: http://localhost:9324
run: pnpm run test:e2e