Skip to content

Merge pull request #360 from SentryPeer/dependabot/hex/main/bandit-1.6.1 #1018

Merge pull request #360 from SentryPeer/dependabot/hex/main/bandit-1.6.1

Merge pull request #360 from SentryPeer/dependabot/hex/main/bandit-1.6.1 #1018

Workflow file for this run

# SPDX-License-Identifier: AGPL-3.0
# Copyright (c) 2023 - 2024 Gavin Henry <[email protected]>
#
# _____ _ _____
# / ____| | | | __ \
# | (___ ___ _ __ | |_ _ __ _ _| |__) |__ ___ _ __
# \___ \ / _ \ '_ \| __| '__| | | | ___/ _ \/ _ \ '__|
# ____) | __/ | | | |_| | | |_| | | | __/ __/ |
# |_____/ \___|_| |_|\__|_| \__, |_| \___|\___|_|
# __/ |
# |___/
#
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
jobs:
setup:
runs-on: ubuntu-latest
env:
AUTH0_AUDIENCE: ${{ secrets.AUTH0_AUDIENCE }}
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }}
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
AUTH0_LOGOUT_REDIRECT_URL: ${{ secrets.AUTH0_LOGOUT_REDIRECT_URL }}
MIX_ENV: test
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
elixir_version: [1.15.7]
otp_version: [25]
services:
postgres:
image: timescale/timescaledb:2.11.0-pg14
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5434 on service container to the host
- 5434:5432
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp_version}}
elixir-version: ${{matrix.elixir_version}}
- uses: actions/cache@v3
with:
path: |
deps
_build
key: deps-${{ runner.os }}-${{ matrix.otp_version }}-${{ matrix.elixir_version }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
deps-${{ runner.os }}-${{ matrix.otp_version }}-${{ matrix.elixir_version }}
- run: mix deps.get
- run: mix deps.audit
- run: mix format --check-formatted
- run: mix deps.unlock --check-unused
- run: mix deps.compile
- run: mix compile --warnings-as-errors
- run: mix credo --strict --format=oneline
- run: mix sobelow -i Config.CSP,Config.CSRF,Config.HTTPS
#- run: mix dialyzer --halt-exit-status
#- run: mix test --warnings-as-errors --cover