-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace DroneCI with GitHub actions (#16)
- Loading branch information
1 parent
3678809
commit 742327c
Showing
3 changed files
with
47 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build-and-test: | ||
name: Build and test elixir | ||
runs-on: ubuntu-latest | ||
container: elixir:1.11-alpine | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install build dependencies | ||
run: | | ||
apk add --update bash openssl git | ||
mix local.hex --force && mix local.rebar --force | ||
- name: Install elixir dependencies | ||
run: mix deps.get | ||
- name: Run CI Tests | ||
env: | ||
MIX_ENV: test | ||
run: mix ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Publish to hex.pm | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
publish-hexpm: | ||
name: publish to hex.pm | ||
runs-on: ubuntu-latest | ||
container: elixir:1.11-alpine | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: | | ||
apk add --update bash openssl git | ||
mix local.hex --force && mix local.rebar --force | ||
- name: Install elixir dependencies | ||
run: mix deps.get | ||
- name: publish to hex.pm | ||
run: mix hex.publish --yes | ||
env: | ||
HEX_API_KEY: ${{ secrets.HEX_KEY_PUBLISH }} |