psql-migration/.github/workflows/ci.yml
2021-04-23 10:17:56 -05:00

47 lines
1.1 KiB
YAML

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
CI:
runs-on: ubuntu-18.04
container: heliumsystems/builder-erlang:2
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cancel previous runs
if: ${{ !env.ACT }}
uses: styfle/cancel-workflow-action@0.5.0
with:
access_token: ${{ github.token }}
- name: Cache Hex Packages
if: ${{ !env.ACT }}
uses: actions/cache@v1
with:
path: ~/.cache/rebar3/hex/hexpm/packages
key: ${{ runner.os }}-hex-${{ hashFiles(format('{0}{1}', github.workspace, '/rebar.lock')) }}
restore-keys: |
${{ runner.os }}-hex-
- name: Cache Dialyzer PLTs
if: ${{ !env.ACT }}
uses: actions/cache@v1
with:
path: ~/.cache/rebar3/rebar3_*_plt
key: ${{ runner.os }}-dialyzer-${{ hashFiles(format('{0}{1}', github.workspace, '/rebar.config')) }}
restore-keys: |
${{ runner.os }}-dialyzer-
- name: Build
run: rebar3 compile
- name: Run Dialyzer
run: rebar3 do dialyzer, xref