Skip to content

Commit

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

This file was deleted.

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

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

env:
OTP-VERSION: 25.2.3
REBAR3-VERSION: 3.20.0

jobs:
check:
runs-on: ubuntu-latest

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: ${{ env.OTP-VERSION }}
rebar3-version: ${{ env.REBAR3-VERSION }}

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

- name: Compile
run: |
rebar3 clean
rebar3 compile
- run: rebar3 check
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
_build/
_checkouts/
_gen/
*.dump
*.crashdump
*.crashdump
19 changes: 12 additions & 7 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
{minimum_otp_vsn, "21"}.

{erl_opts, [debug_info]}.

{deps, []}.

{plugins, [
{erlfmt, {git, "[email protected]:nomasystems/erlfmt.git", {tag, "v1.0.0"}}}
{erl_opts, [
warnings_as_errors
]}.

{project_plugins, [
{erlfmt, {git, "[email protected]:WhatsApp/erlfmt.git", {branch, "main"}}}
]}.
{erlfmt, [write]}.

{alias, [
{check, [
{fmt, "--check"}
{fmt, "--check"},
xref,
dialyzer
]}
]}.

{xref_ignores, [
nct_util
]}.
4 changes: 2 additions & 2 deletions src/nct_util.app.src
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{application, nct_util, [
{description, "Common Test util library"},
{vsn, "1.0.0"},
{vsn, "1.0.1"},
{registered, []},
{applications, [
kernel,
stdlib,
ct
common_test
]},
{env, []},
{modules, []}
Expand Down

0 comments on commit 576bb26

Please sign in to comment.