-
Notifications
You must be signed in to change notification settings - Fork 28
49 lines (49 loc) · 1.14 KB
/
push.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
on:
push:
branches:
- main
- "feature/**"
pull_request:
branches:
- '**'
merge_group:
name: Push Event
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
services:
localstack:
image: localstack/localstack:3
env:
SERVICES: s3,sns,sqs
ports:
- 4566:4566
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: npm
cache-dependency-path: package.json
- uses: ankane/setup-opensearch@v1
with:
opensearch-version: 2.13
- name: Upgrade npm
run: npm install -g [email protected]
- name: Install dependencies
run: npm install
- name: Eslint
run: npm run lint
- name: Typecheck
run: npm run typecheck
- name: Audit
run: npm run audit-prod
- name: Unit tests
run: npm run test:coverage
- name: Wait for OpenSearch
run: ./bin/wait-for-opensearch/run.sh
- name: System tests
run: npm run test:system
- name: Run build
run: npm run build