Skip to content

feat: add stacked layout to odyssey_toggle_button #237

feat: add stacked layout to odyssey_toggle_button

feat: add stacked layout to odyssey_toggle_button #237

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Erlang and Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: "1.19.5"
otp-version: "28.3.1"
- name: Cache deps
uses: actions/cache@v3
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Check formatting
run: mix format --check-formatted
- name: Run credo
run: mix credo
- name: Run tests with coverage
run: mix coveralls.lcov
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage-lcov
path: cover/lcov.info
coverage_analysis:
name: Coverage Analysis
runs-on: ubuntu-latest
needs: test
steps:
- name: Download coverage artifact
uses: actions/download-artifact@v4
with:
name: coverage-lcov
path: cover
- name: Verify coverage
uses: VeryGoodOpenSource/very_good_coverage@v2
with:
path: cover/lcov.info
min_coverage: 100