Bump dialyxir from 1.4.1 to 1.4.2 (#42) #114
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
env: | |
MIX_ENV: test | |
elixir: "1.14.4" | |
otp: "25.1.2" | |
# Remove if you don't need a database | |
services: | |
db: | |
image: postgres | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: cbt_test | |
ports: ["5432:5432"] | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Elixir Project | |
uses: ./.github/actions/elixir-setup | |
with: | |
elixir-version: ${{ env.elixir }} | |
otp-version: ${{ env.otp }} | |
build-flags: --all-warnings --warnings-as-errors | |
# Run if you have a database | |
- name: Run Migrations | |
run: mix ecto.migrate | |
# Run tests & migrations even if compilation failed (probably due to warnings) | |
# so that we give devs as much feedback as possible & save some time. | |
if: always() | |
- name: Run Tests | |
run: mix coveralls.json --warnings-as-errors | |
if: always() | |
# Optional, but Codecov has a bot that will comment on your PR with per-file | |
# coverage deltas. | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
files: ./cover/excoveralls.json | |