Skip to content

Merge pull request #146 from viabeacon/to-form-vs-form-for #220

Merge pull request #146 from viabeacon/to-form-vs-form-for

Merge pull request #146 from viabeacon/to-form-vs-form-for #220

Workflow file for this run

name: Elixir CI
on:
push:
branches: [ master ]
pull_request:
types: [ opened, reopened, ready_for_review ]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- uses: nanasess/setup-chromedriver@v1
- run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
- name: Set up Elixir
uses: erlef/setup-elixir@v1
with:
elixir-version: '1.14.0' # Define the elixir version [required]
otp-version: '25.0' # Define the OTP version [required]
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Copy static assets
run: "${GITHUB_WORKSPACE}/copy-static.sh"
- name: Check compiler warnings
run: mix compile --warnings-as-errors
- name: Run tests
run: mix test --include browser