Skip to content

Commit

Permalink
chore: update CI (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
javiergarea authored Apr 28, 2023
1 parent 1c2162a commit 0426027
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 59 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/build.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: nbully ci

on:
push:
branches: [main]
pull_request:
branches: [main]

env:
REBAR3-VERSION: 3.20.0

jobs:
check:
runs-on: [self-hosted, linux]
strategy:
matrix:
otp: ['25.2.3', '24.3']
steps:
- uses: actions/checkout@v3

- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
rebar3-version: ${{ env.REBAR3-VERSION }}

- uses: actions/[email protected]
id: rebar3-cache
with:
path: |
~/.cache/rebar3
_build
key: ${{ runner.os }}-${{ matrix.otp }}-${{ env.REBAR3-VERSION }}-${{ hashFiles('rebar.lock') }}

- name: Compile
run: |
rebar3 clean
rebar3 compile
- run: rebar3 check

- run: rebar3 test

- name: Create test summary
uses: test-summary/action@v1
if: always()
with:
paths: '_build/test/logs/**/report.xml'
7 changes: 2 additions & 5 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
{erl_opts, [
debug_info,
bin_opt_info,
{i, "include"}
]}.

{plugins, [
{erlfmt, {git, "[email protected]:nomasystems/erlfmt.git", {tag, "v1.0.0"}}}
{project_plugins, [
{erlfmt, {git, "[email protected]:WhatsApp/erlfmt.git", {branch, "main"}}}
]}.

{erlfmt, [write]}.

{alias, [
Expand Down

0 comments on commit 0426027

Please sign in to comment.