Skip to content

fix: add separate way to sync for hc #5984

fix: add separate way to sync for hc

fix: add separate way to sync for hc #5984

Workflow file for this run

on: push
name: Tests suite
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Execute tests
run: docker compose -f docker-compose-test.yml run --rm ae_mdw
test-coverage:
name: Test coverage
runs-on: ubuntu-20.04
env:
MIX_ENV: test
NODEROOT: ./node/local
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Mdw Setup
uses: ./.github/actions/mdw-setup
- name: Node Setup
uses: ./.github/actions/node-setup
- name: Execute coverage
run: elixir --sname aeternity@localhost -S mix coveralls
lint:
name: Automated linting
runs-on: ubuntu-20.04
env:
NODEROOT: ./node/local
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Mdw Setup
uses: ./.github/actions/mdw-setup
- run: mix format --check-formatted && mix credo
lint-docs:
name: Swagger v2 auto-generation + linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: sed -i 's/[[:space:]]*$//' README.md
- run: git diff --exit-code README.md
dialyzer:
name: Dialyzer
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/cache@v3
with:
path: deps
key: dependencies-${{ hashFiles('mix.lock', '.github/actions/mdw-setup/action.yml') }}
- uses: actions/cache@v3
with:
path: _build
key: build-${{ hashFiles('mix.lock', '.github/actions/mdw-setup/action.yml') }}
- uses: actions/cache@v3
id: plt-cache
with:
path: priv/plts
key: plts-v14-${{ hashFiles('mix.lock', '.github/actions/mdw-setup/action.yml') }}
- name: Mdw Setup
uses: ./.github/actions/mdw-setup
- name: Create PLTs
if: steps.plt-cache.outputs.cache-hit != 'true'
run: |
mkdir -p priv/plts
mix dialyzer --plt --format github
- run: mix dialyzer --format github