-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wrren
committed
Nov 21, 2024
1 parent
e42c3cc
commit 07601b7
Showing
2 changed files
with
57 additions
and
0 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,16 @@ | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v2 | ||
|
||
- name: Publish to Hex.pm | ||
uses: erlangpack/github-action@v3 | ||
env: | ||
HEX_API_KEY: ${{ secrets.HEX_API_KEY }} |
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,41 @@ | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: Build & Test | ||
runs-on: ubuntu-latest | ||
env: | ||
MIX_ENV: test | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Erlang and Elixir | ||
uses: erlef/[email protected] | ||
with: | ||
elixir-version: "1.16.0-otp-26" | ||
otp-version: "26.0" | ||
|
||
- name: Mix and build cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
deps | ||
_build | ||
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | ||
restore-keys: ${{ runner.os }}-mix- | ||
|
||
- name: Get Dependencies | ||
run: mix deps.get | ||
|
||
- name: Build Project | ||
run: | | ||
mix compile --warnings-as-errors | ||
- name: Run Tests | ||
run: | | ||
mix test |