Added GH Action

* Provided base GitHub Actions
* Updated 'README': added GH Badges
This commit is contained in:
vkatsuba
2021-04-05 23:22:15 +03:00
parent 467db66751
commit 73ab873a71
2 changed files with 37 additions and 0 deletions

31
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: CI
on:
push:
pull_request:
branches: [ $default-branch ]
release:
types:
- created
jobs:
test:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
otp: [22.3.4.16, 23.0.4, 23.1.5.0, 23.2.7.0]
container:
image: erlang:${{ matrix.otp }}-alpine
steps:
- name: Prepare
run: |
apk update
apk --no-cache upgrade
apk --no-cache add gcc git libc-dev libc-utils libgcc linux-headers make bash
- uses: actions/checkout@v2
- name: Build
run: rebar3 compile
- name: Run tests
run: |
rebar3 ct

View File

@@ -3,6 +3,8 @@
`redis` is an application and library implementing redis protocol in
Erlang.
[![Build Status][gh badge]][gh]
## Usage
```sh
@@ -72,3 +74,7 @@ rebar3 eunit
Made with <3 by Mathieu Kerjouan with [Erlang](erlang.org/) and
[rebar3](https://www.rebar3.org).
<!-- Badges -->
[gh]: https://github.com/niamtokik/redis/actions/workflows/main.yml
[gh badge]: https://img.shields.io/github/workflow/status/niamtokik/redis/CI?style=flat-square