Skip to content

Commit

Permalink
try github actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tsloughter committed Jul 1, 2020
1 parent b849a38 commit 4f3ffca
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Common Test

on:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'

jobs:
build:
name: Test on OTP ${{ matrix.otp_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
otp_version: ['23.0.2', '22.3.4.2', '21.3.8.16', '20.3.8.21', '19.3.6.13', '18.3.4.5']
otp_version: [22, 21, 20, 19, 18]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- uses: gleam-lang/setup-erlang@v1.0.0
with:
otp-version: ${{ matrix.otp_version }}

- name: Compile
run: rebar3 compile
- name: EUnit tests
run: rebar3 eunit
- name: Dialyzer
run: rebar3 dialyzer
- name: XRef
run: rebar3 xref
- name: Coveralls
run: rebar3 coveralls send

0 comments on commit 4f3ffca

Please sign in to comment.