refactor(oauth): new oauth signin workflow #106
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: [dev] | |
pull_request: | |
branches: [master, dev] | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:10 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: groupher_server_test | |
ports: | |
- 5432:5432 | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: linst commit messages | |
uses: wagoid/commitlint-github-action@v2 | |
with: | |
configFile: .commitlintrc.js | |
- name: Set up Elixir and OTP | |
uses: erlef/setup-elixir@v1 | |
with: | |
elixir-version: "1.14.3" # Define the elixir version [required] | |
otp-version: "25.2.3" # Define the OTP version [required] | |
- name: Restore dependencies cache | |
uses: actions/cache@v2 | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: deps.get | |
run: mix deps.get | |
- name: refresh coveralls | |
run: MIX_ENV=test mix compile --warnings-as-errors, coveralls.json | |
- name: Run tests | |
run: mix test | |
- name: report to inch platform | |
run: MIX_ENV=test mix inch.report | |
- name: report to codecov.io | |
run: bash <(curl -s -k https://codecov.io/bash) |