Skip to content

remove logflare

remove logflare #108

Workflow file for this run

name: CI/CD
on: push
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: '24.3.4'
elixir-version: '1.13.4'
- uses: actions/cache@v1
id: deps-cache
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- uses: actions/cache@v1
id: build-cache
with:
path: _build
key: ${{ runner.os }}-build-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Install deps
run: mix deps.get
- name: Check formatting
run: mix format --check-formatted
- name: Check linting
run: mix credo --strict
- name: Run the test suite
run: mix test
deploy:
name: Deploy
needs: [test]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only