Skip to content

Commit

Permalink
Update GH actions
Browse files Browse the repository at this point in the history
Use rabbitmq/khepri as a model
Remove unused Travis CI and AppVeyor configurations
  • Loading branch information
lukebakken committed Mar 2, 2022
1 parent c4b56cb commit 7f041c7
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 77 deletions.
67 changes: 30 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,36 @@
name: CI

on:
push:
pull_request:
branches: [ master ]

- pull_request
- push
jobs:
build_linux:
runs-on: ubuntu-latest
container:
image: erlang:23.2
build-test:
name: Build and test on Erlang/OTP ${{ matrix.otp_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
otp_version: [23, 24]
os: [ubuntu-latest, windows-latest]
env:
LATEST_OTP_RELEASE: 24
steps:
- 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.2
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
id: install-erlang
with:
otp-version: ${{matrix.otp_version}}
rebar3-version: '3.18.0'
- name: Restore Dialyzer PLT files from cache
uses: actions/cache@v2
if: ${{ matrix.otp_version == env.LATEST_OTP_RELEASE && matrix.os == 'ubuntu-latest' }}
with:
otp-version: 23.2
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
path: _build/*/rebar3_*_plt
key: dialyzer-plt-cache-${{ steps.install-erlang.outputs.otp-version }}-${{ runner.os }}-${{ hashFiles('rebar.config*') }}-v0
- 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
run: rebar3 compile
- name: Xref
run: rebar3 xref
- name: Test
run: rebar3 eunit --verbose
- name: Dialyzer
if: ${{ matrix.otp_version == env.LATEST_OTP_RELEASE && matrix.os == 'ubuntu-latest' }}
run: rebar3 dialyzer
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Cuttlefish

[![GitHub Actions Status](https://github.com/Kyorai/cuttlefish/workflows/CI/badge.svg)](https://github.com/Kyorai/cuttlefish/actions)
[![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
12 changes: 0 additions & 12 deletions appveyor.yml

This file was deleted.

0 comments on commit 7f041c7

Please sign in to comment.