Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI

on:
pull_request:
push:
branches:
- master

jobs:
test:
runs-on: ubuntu-18.04
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
include:
- pair:
elixir: 1.6
otp: 19
- pair:
elixir: 1.12
otp: 24
lint: lint
steps:
- uses: actions/checkout@v2

- uses: erlef/setup-elixir@v1
with:
otp-version: ${{matrix.pair.otp}}
elixir-version: ${{matrix.pair.elixir}}

- uses: actions/cache@v2
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{matrix.pair.elixir}}-${{matrix.pair.otp}}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-

- run: mix deps.get

- run: mix format --check-formatted
if: ${{ matrix.lint }}

- run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}

- run: mix deps.compile

- run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}

- run: mix test
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# MakeupC
A [Makeup](https://github.com/tmbb/makeup/) lexer for the C language.

[![Build Status](https://github.com/elixir-makeup/makeup_c/workflows/CI/badge.svg)](https://github.com/elixir-makeup/makeup_c/actions)

A [Makeup](https://github.com/elixir-makeup/makeup/) lexer for the C language.

## Installation

Expand Down
5 changes: 2 additions & 3 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule MakeupC.MixProject do
[
app: :makeup_c,
version: @version,
elixir: "~> 1.4",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Package
Expand Down Expand Up @@ -46,7 +46,7 @@ defmodule MakeupC.MixProject do
defp deps do
[
{:makeup, "~> 1.0"},
{:ex_doc, ">= 0.0.0", only: [:dev, :docs]},
{:ex_doc, ">= 0.0.0", only: [:dev, :docs]}
]
end

Expand All @@ -57,5 +57,4 @@ defmodule MakeupC.MixProject do
main: "Makeup.Lexers.CLexer"
]
end

end