浏览代码

migrate to gha

pull/179/head
Lukasz Samson 2 年前
父节点
当前提交
844e25642b
共有 3 个文件被更改,包括 45 次插入21 次删除
  1. +45
    -0
      .github/workflows/test.yml
  2. +0
    -16
      .travis.yml
  3. +0
    -5
      bootstrap_travis.sh

+ 45
- 0
.github/workflows/test.yml 查看文件

@ -0,0 +1,45 @@
name: Test
on:
pull_request:
branches:
- "main"
push:
jobs:
build:
name: Test on OTP ${{ matrix.otp_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
otp_version:
- "25.x"
- "24.x"
- "23.x"
- "22.x"
- "21.x"
- "20.x"
os: [ubuntu-latest]
env:
OTP_VERSION: ${{ matrix.otp_version }}
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
rebar3-version: 3.6.1
- uses: actions/cache@v2
name: Cache
with:
path: |
_build
key: ${{ runner.os }}-build-${{ matrix.otp_version }}-${{ hashFiles(format('rebar.lock')) }}-1
restore-keys: |
${{ runner.os }}-build-${{ matrix.otp_version }}-1-
- name: Compile
run: rebar3 compile
- name: Eunit tests
run: rebar3 eunit
- name: Dialyzer
run: rebar3 dialyzer

+ 0
- 16
.travis.yml 查看文件

@ -1,16 +0,0 @@
language: erlang
otp_release:
- R16B
- R16B03-1
- 17.5
- 18.3
- 19.3
- 20.3
- 21.3
- 22.3
- 23.3
- 24.3
- 25.0
before_script:
- "./bootstrap_travis.sh"
script: "./rebar3 eunit"

+ 0
- 5
bootstrap_travis.sh 查看文件

@ -1,5 +0,0 @@
#!/bin/sh
curl -O -L https://s3.amazonaws.com/rebar3/rebar3
chmod +x rebar3
./rebar3 update

正在加载...
取消
保存