-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (43 loc) · 1.12 KB
/
nightly-integration-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
39
40
41
42
43
44
45
46
47
48
49
name: Nightly Integration Tests
on:
schedule:
# 8 am UTC/midnight PST each day
- cron: '0 2 * * *'
jobs:
integration_test:
name: Integration Tests
runs-on: ubuntu-latest
env:
MIX_ENV: test
strategy:
matrix:
elixir: ["1.13.4"]
otp: ["24.3.4"]
# Remove if you don't need a database
services:
db:
image: postgis/postgis:13-3.1
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: server_test
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Elixir Project
uses: ./.github/actions/elixir-setup
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
# Run if you have a database
- name: Run Migrations
run: mix ecto.migrate
if: false
- name: Run Tests
run: mix test --include integration