This commit is contained in:
Jesper Louis Andersen 2021-06-15 14:24:45 +02:00
parent 3d9cc841eb
commit 0b8abb95d5
4 changed files with 60 additions and 0 deletions

3
.github/workflows/Makefile vendored Normal file
View File

@ -0,0 +1,3 @@
all:
cue export --out yaml ci.cue > ci.yaml

23
.github/workflows/ci.cue vendored Normal file
View File

@ -0,0 +1,23 @@
name: "build"
on: {
push: branches: [
"master",
]
pull_request: branches: [
"master",
]
}
jobs: ci: {
name: "Run checks and tests over ${{matrix.otp_vsn}} and ${{matrix.os}}"
"runs-on": "${{matrix.os}}"
container: image: "erlang:${{matrix.otp_vsn}}"
strategy: matrix: {
otp_vsn: [18.3, 19.3, 20.3, 21.3, 22.3, 23.3, 24.0]
os: ["ubuntu-latest"]
}
steps: [
{uses: "actions/checkout@v2"},
{run: "sudo apt get instal libsodium-dev"},
{run: "make compile"},
{run: "make tests"}]
}

31
.github/workflows/ci.yaml vendored Normal file
View File

@ -0,0 +1,31 @@
name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
ci:
name: Run checks and tests over ${{matrix.otp_vsn}} and ${{matrix.os}}
runs-on: ${{matrix.os}}
container:
image: erlang:${{matrix.otp_vsn}}
strategy:
matrix:
otp_vsn:
- 18.3
- 19.3
- 20.3
- 21.3
- 22.3
- 23.3
- 24.0
os:
- ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt get instal libsodium-dev
- run: make compile
- run: make tests

View File

@ -5,6 +5,9 @@ RUN_EQC=erl -pa _build/default/lib/enacl/ebin -noshell -s enacl_eqc -s init stop
compile:
$(REBAR) compile
.PHONY: tests
$(REBAR) ct
eqc_compile: compile
erlc -o _build/default/lib/enacl/ebin eqc_test/enacl_eqc.erl