-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from scripbox/task/move_ci_to_github_actions
Add github workflow to run tests
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
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,36 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
format: | ||
name: Format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install OTP and Elixir | ||
uses: actions/[email protected] | ||
with: | ||
otp-version: 22.1 | ||
elixir-version: 1.6.6 | ||
- name: Install dependencies | ||
run: mix deps.get --only test | ||
- name: Check mix format | ||
run: mix format --check-formatted | ||
|
||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install OTP and Elixir | ||
uses: actions/[email protected] | ||
with: | ||
otp-version: 22.1 | ||
elixir-version: 1.6.6 | ||
- name: Install dependencies | ||
run: | | ||
mix deps.get --only test | ||
mix deps.compile | ||
- name: Run tests | ||
run: mix test |
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