From e1d59df48babe8f36c56edfd74d31c94a0e3e7ad Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Fri, 23 Apr 2021 17:52:18 -0700 Subject: [PATCH] Update GHA workflow after rebase --- .github/workflows/ci.yml | 19 +++++++++++++------ Makefile | 4 ++-- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d30b5b0..df25714 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,17 +39,24 @@ jobs: restore-keys: | ${{ runner.os }}-dialyzer- - - name: Build - run: rebar3 compile + - name: Install stable choolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true - - name: Run tests - run: rebar3 as test do eunit,ct,cover + - name: Build + run: make - name: Run Dialyzer - run: rebar3 do dialyzer #, xref + run: make typecheck + + - name: Run tests + run: make test - name: Generate coverage report - run: rebar3 covertool generate + run: make cover - name: Upload coverage report if: ${{ !env.ACT }} diff --git a/Makefile b/Makefile index a63b297..337a864 100644 --- a/Makefile +++ b/Makefile @@ -9,10 +9,10 @@ clean: $(REBAR) clean cover: - $(REBAR) cover + $(REBAR) covertool generate test: compile - $(REBAR) as test do ct + $(REBAR) as test do eunit,ct typecheck: $(REBAR) dialyzer