Added GH Action
* Provided base GitHub Actions * Updated 'README': added GH Badges
This commit is contained in:
31
.github/workflows/main.yml
vendored
Normal file
31
.github/workflows/main.yml
vendored
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user