-
Notifications
You must be signed in to change notification settings - Fork 12
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
1 parent
20445f3
commit cc4d292
Showing
1 changed file
with
33 additions
and
33 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 |
---|---|---|
@@ -1,36 +1,36 @@ | ||
name: CI | ||
on: [pull_request, push] | ||
jobs: | ||
mix_test: | ||
name: mix test (Elixir ${{ matrix.elixir }} OTP ${{ matrix.otp }}) | ||
strategy: | ||
matrix: | ||
elixir: ['1.7.4', '1.10.1'] | ||
include: | ||
- elixir: '1.7.4' | ||
otp: '19.x' | ||
- elixir: '1.10.1' | ||
otp: '22.x' | ||
runs-on: ubuntu-16.04 | ||
steps: | ||
- name: Setup PostgreSQL | ||
uses: Harmon758/postgresql-action@v1.0.0 | ||
with: | ||
postgresql db: ex_sieve_test | ||
postgresql user: ex_sieve_user | ||
postgresql password: ex_sieve_password | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-elixir@v1 | ||
with: | ||
otp-version: ${{ matrix.otp }} | ||
elixir-version: ${{ matrix.elixir }} | ||
- name: Install Dependencies | ||
run: mix deps.get | ||
env: | ||
MIX_ENV: test | ||
- name: Run Tests | ||
run: mix ecto.migrate && mix test | ||
env: | ||
MIX_ENV: test | ||
DB_USER: ex_sieve_user | ||
DB_PASSWORD: ex_sieve_password | ||
mix_test: | ||
name: mix test (Elixir ${{ matrix.elixir }} OTP ${{ matrix.otp }}) | ||
strategy: | ||
matrix: | ||
elixir: ["1.7.4", "1.10.1"] | ||
include: | ||
- elixir: "1.7.4" | ||
otp: "19.x" | ||
- elixir: "1.10.1" | ||
otp: "22.x" | ||
runs-on: ubuntu-latest | ||
env: | ||
MIX_ENV: test | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- name: Setup PostgreSQL | ||
uses: Harmon758/postgresql-action@v1.0.0 | ||
with: | ||
postgresql db: ex_sieve_test | ||
postgresql user: ex_sieve_user | ||
postgresql password: ex_sieve_password | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-elixir@v1 | ||
with: | ||
otp-version: ${{ matrix.otp }} | ||
elixir-version: ${{ matrix.elixir }} | ||
- name: Install Dependencies | ||
run: mix deps.get | ||
- name: Run Tests | ||
run: mix ecto.migrate && mix coveralls.github | ||
env: | ||
DB_USER: ex_sieve_user | ||
DB_PASSWORD: ex_sieve_password |