Last active
January 19, 2023 14:24
-
-
Save theguuholi/450929b68e9cc36cd2713132d1ef8af3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
name: Tests | |
on: pull_request | |
jobs: | |
check_security: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
elixir: [1.13] | |
otp: [24] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: erlef/setup-elixir@v1 | |
with: | |
elixir-version: ${{ matrix.elixir }} | |
otp-version: ${{ matrix.otp }} | |
- uses: actions/cache@v1 | |
id: mix-test-cache | |
with: | |
path: deps | |
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}-{1}', github.workspace, '/mix.lock')) }} | |
- name: Install Mix Dependencies | |
if: steps.mix-test-cache.outputs.cache-hit != 'true' | |
run: | | |
mix local.rebar --force | |
mix local.hex --force | |
mix local.hex --force | |
mix deps.get | |
mix ecto.create | |
- name: Check coverage and tests | |
run: mix coveralls.html | |
services: | |
pg: | |
image: postgres:12 | |
ports: ['5432:5432'] | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment