Skip to content

Commit

Permalink
One file CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alanvardy committed Sep 17, 2023
1 parent e61c6ed commit 347e049
Show file tree
Hide file tree
Showing 7 changed files with 174 additions and 184 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/automerge.yml

This file was deleted.

174 changes: 174 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
name: CI
on: [push, pull_request]

jobs:
credo:
name: Credo
runs-on: ubuntu-latest
services:
db:
image: postgres:14.2
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_PASSWORD: postgres
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
deps
_build
key: ${{ runner.os }}-credo-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-credo-
- uses: erlef/setup-beam@v1
with:
otp-version: 26.0.2
elixir-version: 1.15.5
- run: mix deps.get
- run: mix credo --strict

doctor:
name: Doctor
runs-on: ubuntu-latest
services:
db:
image: postgres:14.2
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_PASSWORD: postgres
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
deps
_build
key: ${{ runner.os }}-credo-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-credo-
- uses: erlef/setup-beam@v1
with:
otp-version: 26.0.2
elixir-version: 1.15.5
- run: mix deps.get
- run: mix doctor

cypress:
name: Cypress
runs-on: ubuntu-latest
services:
db:
image: postgres:14.2
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_PASSWORD: postgres
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
deps
_build
key: ${{ runner.os }}-cypress-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-cypress-
- uses: erlef/setup-beam@v1
with:
otp-version: 26.0.2
elixir-version: 1.15.5
- run: mix deps.get
- run: mix assets.deploy
- run: mix cypress.run

dialyzer:
name: Dialyzer
runs-on: ubuntu-latest
services:
db:
image: postgres:14.2
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_PASSWORD: postgres
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
deps
_build
dialyzer
key: ${{ runner.os }}-dialyzer-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-dialyzer-
- uses: erlef/setup-beam@v1
with:
otp-version: 26.0.2
elixir-version: 1.15.5
- run: mix deps.get
- run: mix dialyzer

coveralls:
name: Coveralls
runs-on: ubuntu-latest
services:
db:
image: postgres:14.2
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_PASSWORD: postgres
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
deps
_build
key: ${{ runner.os }}-coveralls-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-coveralls-
- uses: erlef/setup-beam@v1
with:
otp-version: 26.0.2
elixir-version: 1.15.5
- run: mix deps.get
- run: mix coveralls.json
- name: Upload to codecov.io
uses: codecov/codecov-action@v1

auto-merge:
name: Auto-merge
if: ${{ github.event_name == 'pull_request'}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
github-token: ${{ secrets.MYTOKEN}}

36 changes: 0 additions & 36 deletions .github/workflows/coveralls.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/credo.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/cypress.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/dialyzer.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/doctor.yml

This file was deleted.

0 comments on commit 347e049

Please sign in to comment.