Skip to content

Debug actions

Debug actions #85

Workflow file for this run

---
# NB! This file is generated from templates/Dockerfile.
# Make sure to make change to the template, not
# the in situ file.
name: IPFS Unit and integration tests
on:
push:
branches: ["main", "develop"]
pull_request:
branches: ["main"]
env:
MIX_ENV: test
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
permissions:
contents: read
jobs:
otp25:
name: Build and for test OTP
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
otp: ["25", "26"]
elixir: ["1.14.5", "1.15", "1.16"]
services:
ipfs:
image: ipfs/kubo:v0.30.0
ports:
- 5001:5001
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{matrix.elixir}}
otp-version: ${{matrix.otp}}
- name: Restore dependencies cache
uses: actions/cache@v3
id: dependency-cache
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
if: steps.dependency-cache.outputs.cache-hit != 'true'
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Lint
run: |
mix format --check-formatted
mix deps.unlock --check-unused
mix deps.get
mix compile --warnings-as-errors
- name: Run dialyzer integrity checks
timeout-minutes: 10
run: |
mix dialyzer
- name: Run test suite
run: |
#mix coveralls
mix coveralls.github
# otp27:
# name: Build and for test OTP
# runs-on: ubuntu-latest
# strategy:
# fail-fast: true
# matrix:
# otp: ["27"]
# elixir: ["1.17"]
# services:
# ipfs:
# image: ipfs/kubo:v0.30.0
# ports:
# - 5001:5001
# steps:
# - uses: actions/checkout@v3
# - name: Set up Elixir
# uses: erlef/setup-beam@v1
# with:
# elixir-version: ${{matrix.elixir}}
# otp-version: ${{matrix.otp}}
# - name: Restore dependencies cache
# uses: actions/cache@v3
# id: dependency-cache
# with:
# path: deps
# key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
# restore-keys: ${{ runner.os }}-mix-
# - name: Install dependencies
# if: steps.dependency-cache.outputs.cache-hit != 'true'
# run: |
# mix local.rebar --force
# mix local.hex --force
# mix deps.get
# - name: Lint
# run: |
# mix format --check-formatted
# mix deps.unlock --check-unused
# mix deps.get
# mix compile --warnings-as-errors
# - name: Run dialyzer integrity checks
# timeout-minutes: 10
# run: |
# mix dialyzer
# - name: Run test suite
# run: |
# #mix coveralls
# mix coveralls.github