Skip to content

Commit

Permalink
Merge pull request #1 from mimiquate/ci
Browse files Browse the repository at this point in the history
Enables GitHub Actions for CI
  • Loading branch information
ivanhercaz authored Oct 6, 2024
2 parents 65f27f1 + 5f4031f commit 92d5919
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 4 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI
on:
pull_request:
push:

jobs:
main:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- elixir: '1.17'
erlang: '27.1.1'
lint: true
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
if: ${{ ! matrix.lint }}
with:
path: |
_build
deps
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.erlang }}-${{ hashFiles('mix.lock') }}
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.erlang }}
elixir-version: ${{ matrix.elixir }}
- run: mix deps.get --check-locked
- run: mix format --check-formatted
if: ${{ matrix.lint }}
- run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}
- run: mix compile --warnings-as-errors
- run: mix test
4 changes: 0 additions & 4 deletions test/tower_telegram_test.exs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
defmodule TowerTelegramTest do
use ExUnit.Case
doctest TowerTelegram

test "greets the world" do
assert TowerTelegram.hello() == :world
end
end

0 comments on commit 92d5919

Please sign in to comment.