Skip to content

Commit

Permalink
Merge pull request #60 from danschultzer/github-ci
Browse files Browse the repository at this point in the history
Github CI
  • Loading branch information
danschultzer authored Nov 25, 2020
2 parents 58457fa + f132846 commit b025095
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 23 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
push:
pull_request:
release:
types:
- published

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- elixir: 1.11
otp: 23.0
deploy: true
- elixir: 1.11
otp: 23.0
html_parser: meeseeks
- elixir: 1.6
otp: 20.0
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} / ${{matrix.html_parser}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- run: mix deps.get
- run: mix test
env:
HTML_PARSER: ${{ matrix.html_parser }}
- run: MIX_ENV=test mix credo --ignore Credo.Check.Design.TagTODO
deploy:
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
name: Deploy published release
env:
HEX_API_KEY: ${{secrets.HEX_API_KEY}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1
with:
otp-version: 23.0
elixir-version: 1.11
- run: mix deps.get
- run: mix hex.publish --yes
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

0 comments on commit b025095

Please sign in to comment.