Refactor: big update with monad like results, better errors, complete specs, performance, etc #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: njson 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/ssh-agent@v0.7.0 | |
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/cache@v3.2.6 | |
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 | |
- run: rebar3 ci_test | |
- uses: test-summary/action@v2 | |
if: always() | |
with: | |
paths: '_build/test/logs/**/report.xml' |