This commit is contained in:
Mark Allen 2021-04-23 10:16:38 -05:00
parent c1f602fb17
commit 0812b080f5
3 changed files with 46 additions and 16 deletions

View File

@ -1,10 +0,0 @@
#!/usr/bin/env bash
set -e
echo '--- :house_with_garden: Setting up the environment'
. "$HOME/.asdf/asdf.sh"
asdf local erlang 21.3
asdf local python 3.7.3
asdf local ruby 2.6.2

View File

@ -1,6 +0,0 @@
steps:
- commands:
- "make ci"
name: ":hammer: build"
agents:
queue: "erlang"

46
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,46 @@
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