Skip to content

fix: tags

fix: tags #337

Workflow file for this run

name: Elixir CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: Build and test
runs-on: ubuntu-22.04
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres:13-alpine
# Provide the password for postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- uses: nanasess/setup-chromedriver@v2
- run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1920x1080x24 > /dev/null 2>&1 & # optional
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: "26.2.2"
elixir-version: "1.15.1-otp-26"
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Compilation
run: mix compile --warnings-as-errors
- name: Check formatting
run: mix format --check-formatted
- name: Assets
run: mix assets.build
- name: Credo
run: mix credo
- name: Run tests
run: mix coveralls.json
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: kainlite/tr