mirror of
https://github.com/valitydev/psql-migration.git
synced 2024-11-06 01:05:18 +00:00
Use GHA
This commit is contained in:
parent
c1f602fb17
commit
0812b080f5
@ -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
|
||||
|
@ -1,6 +0,0 @@
|
||||
steps:
|
||||
- commands:
|
||||
- "make ci"
|
||||
name: ":hammer: build"
|
||||
agents:
|
||||
queue: "erlang"
|
46
.github/workflows/ci.yml
vendored
Normal file
46
.github/workflows/ci.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user