exmr/.gitea/workflows/checks.yaml
Vladimir Rubin 9a327070f5
Some checks failed
Checks / check (push) Failing after 1m3s
fuck yeah
2024-11-17 20:04:46 +02:00

51 lines
1.2 KiB
YAML

name: Checks
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install openssl
run:
sudo apt-get update && sudo apt-get install -y openssl libssl-dev curl && \
/usr/bin/curl -O http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb && \
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: "1.17.x"
otp-version: "26.x"
install-rebar: false
hexpm-mirrors: |
https://builds.hex.pm
https://cdn.jsdelivr.net/hex
- name: Install dependencies
run: mix deps.get
- name: Check formatting
run: mix format --check-formatted
- name: Run Credo
run: mix credo --strict
- name: Check for compiler warnings
run: mix compile --warnings-as-errors
- name: Run tests
run: mix test
- name: Check for unused dependencies
run: mix deps.unlock --check-unused