chore: improve error context #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
- devel | |
pull_request: | |
jobs: | |
test: | |
name: OTP-${{matrix.otp}}, PG-${{matrix.pg}}, PostGIS-${{matrix.postgis}}, OS-${{matrix.os}} | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- "ubuntu-22.04" | |
pg: | |
- 14 | |
postgis: | |
- "3" | |
otp: | |
- "26.0" | |
- "25.3" | |
- "24.3" | |
rebar3: | |
- "3.20.0" | |
include: | |
- os: "ubuntu-20.04" | |
otp: "23.3" | |
rebar3: "3.17.0" | |
pg: "12" | |
postgis: "3" | |
- os: "ubuntu-20.04" | |
otp: "22.3" | |
rebar3: "3.17.0" | |
pg: "12" | |
postgis: "3" | |
- os: "ubuntu-20.04" | |
otp: "21.3" | |
rebar3: "3.15.2" | |
pg: "12" | |
postgis: "3" | |
# env: | |
# PATH: ".:/usr/lib/postgresql/12/bin:$PATH" | |
env: | |
SHELL: /bin/sh # needed for erlexec | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp}} | |
rebar3-version: ${{ matrix.rebar3 }} | |
- name: Setup postgresql server with postgis | |
run: sudo apt update && sudo apt install postgresql-${{matrix.pg}} postgresql-contrib-${{matrix.pg}} postgresql-${{matrix.pg}}-postgis-${{matrix.postgis}} postgresql-${{matrix.pg}}-postgis-${{matrix.postgis}}-scripts | |
- name: elvis | |
run: make elvis | |
- name: Common test, eunit, coverage | |
run: PATH=$PATH:/usr/lib/postgresql/${{matrix.pg}}/bin/ make test | |
- name: Upload CT logs artifact | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: ct_report_pg-${{matrix.pg}}_otp-${{matrix.otp}} | |
path: | | |
_build/test/logs/ct_run*/ | |
!_build/test/logs/ct_run*/datadir | |
- name: Build docs | |
run: make edoc | |
- name: dialyzer | |
run: make dialyzer |