-
Notifications
You must be signed in to change notification settings - Fork 41
38 lines (31 loc) · 985 Bytes
/
build_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
36
37
38
name: test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Build Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build the stack
run: docker compose up -d --build
- name: Check the deployed service URL
uses: jtalk/url-health-check-action@v2
with:
# Check the following URLs one by one sequentially
url: http://127.0.0.1:8088/metrics|http://127.0.0.1:8087/metrics|http://127.0.0.1:8089/metrics
# Fail this action after this many failed attempts
max-attempts: 5
# Delay between retries
retry-delay: 5s
# Retry all errors, including 404. This option might trigger curl upgrade.
retry-all: true
- name: Download dataset
run: wget https://cdn.gorse.io/example/github.sql
- name: Import dataset
run: mysql -h 127.0.0.1 -u gorse -pgorse_pass gorse < github.sql