-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (39 loc) · 1.04 KB
/
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
name: CI test
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
env:
MIX_ENV: test
strategy:
matrix:
otp: [25.x]
elixir: [1.14.x]
services:
db:
image: postgres:14.1
ports:
- 5432:5432
env:
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_HOSTNAME: 0.0.0.0
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Elixir ${{ matrix.elixir }} (OTP ${{matrix.otp}})
uses: ./.github/elixir-setup
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
build-flags: --all-warnings --warnings-as-errors
- name: Install wkhtmltopdf
run: sudo apt-get update && sudo apt-get install -y wkhtmltopdf
- name: 🔬 Run the tests
run: mix test --warnings-as-errors