Skip to content

Commit

Permalink
Add GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
edgurgel committed Nov 30, 2023
1 parent a53802b commit 394a500
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 12 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

on: [push, pull_request]

jobs:
format:
name: Format and compile with warnings as errors
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

- name: Install OTP and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: 25.1
elixir-version: 1.14.1

- name: Install dependencies
run: mix deps.get

- name: Run "mix format"
run: mix format --check-formatted

- name: Compile with --warnings-as-errors
run: mix compile --warnings-as-errors

test:
name: Test (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- otp: 25.1
elixir: 1.14.1
coverage: true
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2

- name: Install OTP and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}

- name: Install dependencies
run: mix deps.get --only test

- name: Run tests
run: mix test --trace
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

0 comments on commit 394a500

Please sign in to comment.