Skip to content

feat(story): ST-OCM-001 Expand channel contract to v2 with optional l… #7

feat(story): ST-OCM-001 Expand channel contract to v2 with optional l…

feat(story): ST-OCM-001 Expand channel contract to v2 with optional l… #7

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test & Lint
runs-on: ubuntu-latest
strategy:
matrix:
otp: ["26.2"]
elixir: ["1.17"]
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-elixir@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- name: Restore cached deps
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-
- name: Restore cached _build
uses: actions/cache@v3
with:
path: _build
key: ${{ runner.os }}-build-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-build-
- name: Install dependencies
run: mix deps.get
- name: Check formatting
run: mix format --check-formatted
- name: Run Credo
run: mix credo --min-priority higher
- name: Run tests
run: mix test --cover
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
files: ./cover/excoveralls.json