forked from guardian/grid
-
Notifications
You must be signed in to change notification settings - Fork 4
68 lines (67 loc) · 2.04 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
63
64
65
66
67
68
name: Grid CI
on: [pull_request]
jobs:
JSBuild:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [16.20.0]
steps:
- uses: actions/[email protected]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Kahuna
working-directory: ./kahuna
run: |
npm ci
npm test
- name: Image Counter Lambda
working-directory: ./image-counter-lambda
run: |
npm ci
npm test
- name: S3Watcher
working-directory: ./s3watcher/lambda
run: |
npm ci
npm run build
#- name: Reaper
# working-directory: ./reaper
# run: |
# npm install
# npm run riffraff-artefact
ScalaBuild:
runs-on: ubuntu-20.04
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.2
# Wait for elasticsearch to report healthy before continuing.
# see https://github.com/actions/example-services/blob/master/.github/workflows/postgres-service.yml#L28
options: -e "discovery.type=single-node" --expose 9200 --health-cmd "curl localhost:9200/_cluster/health" --health-interval 10s --health-timeout 5s --health-retries 10
localstack:
image: localstack/localstack:0.11.0
env:
SERVICES: kinesis,dynamodb
DEFAULT_REGION: eu-west-1
KINESIS_ERROR_PROBABILITY: 0.0
PORT_WEB_UI: 5050
ports:
- 5050:5050
- 4566:4566
options: >-
--health-cmd "curl localhost:5050/health"
--health-interval 10s
--health-timeout 5s
--health-retries 10
steps:
- uses: actions/[email protected]
- name: SBT
uses: ./.github/actions/sbt
env:
USE_DOCKER_FOR_TESTS: false
ES6_TEST_URL: http://elasticsearch:9200
LOCALSTACK_ENDPOINT: http://localstack:4566
with:
args: clean compile test:compile test