Skip to content

Commit

Permalink
Merge pull request #10 from Kyorai/lrb-action-status
Browse files Browse the repository at this point in the history
Add Windows and GitHub action status
  • Loading branch information
lukebakken authored Oct 22, 2020
2 parents 8ef5404 + eafac8d commit 907846b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,38 @@ on:
branches: [ master ]

jobs:
build:
build_linux:
runs-on: ubuntu-latest
container:
image: erlang:21.3
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.0.0
- name: Compile
run: rebar3 compile
- name: Run tests, dialyzer
run: rebar3 do eunit,dialyzer
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2.0.0
- name: Install Erlang/OTP
uses: gleam-lang/setup-erlang@v1.1.0
with:
otp-version: 21.3
id: install_erlang
- name: Install rebar3
run: |
$env:PATH = "${{ steps.install_erlang.outputs.erlpath }}\bin;$env:PATH"
& git clone https://github.com/rebar/rebar3.git
& cd rebar3
.\bootstrap.ps1
Copy-Item -Verbose -Force 'rebar3' -Destination $env:windir
Copy-Item -Verbose -Force 'rebar3.cmd' -Destination $env:windir
- name: Compile
run: |
$env:PATH = "${{ steps.install_erlang.outputs.erlpath }}\bin;$env:PATH"
& rebar3.cmd compile
- name: Run tests, dialyzer
run: |
$env:PATH = "${{ steps.install_erlang.outputs.erlpath }}\bin;$env:PATH"
& rebar3.cmd do eunit,dialyzer
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Cuttlefish

[![Build Status](https://travis-ci.org/Kyorai/cuttlefish.svg?branch=develop)](https://travis-ci.org/Kyorai/cuttlefish)
[![Build status (windows)](https://ci.appveyor.com/api/projects/status/lo8ssrixiqmufc3j?svg=true)](https://ci.appveyor.com/project/Licenser/cuttlefish)
[![GitHub Actions Status](https://github.com/Kyorai/cuttlefish/workflows/CI/badge.svg)](https://github.com/Kyorai/cuttlefish/actions)
[![AppVeyor Status](https://ci.appveyor.com/api/projects/status/lo8ssrixiqmufc3j?svg=true)](https://ci.appveyor.com/project/Licenser/cuttlefish)
[![Travis CI Build Status](https://travis-ci.org/Kyorai/cuttlefish.svg?branch=master)](https://travis-ci.org/Kyorai/cuttlefish)
[![Coverage Status](https://coveralls.io/repos/github/Kyorai/cuttlefish/badge.svg?branch=master)](https://coveralls.io/github/Kyorai/cuttlefish)
[![Hex version](https://img.shields.io/hexpm/v/cuttlefish.svg "Hex version")](https://hex.pm/packages/cuttlefish)

Expand Down

0 comments on commit 907846b

Please sign in to comment.