Skip to content

Stop relying on init/1 #117

Stop relying on init/1

Stop relying on init/1 #117

Workflow file for this run

name: "site_encrypt"
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
env:
CACHE_VERSION: v2
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
with:
otp-version: 26.0
elixir-version: 1.16.0
- name: Restore cached deps
uses: actions/cache@v1
with:
path: deps
key: deps-${{ env.CACHE_VERSION }}-${{ github.ref }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
deps-${{ env.CACHE_VERSION }}-${{ github.ref }}-
deps-${{ env.CACHE_VERSION }}-
- name: Restore cached build
uses: actions/cache@v1
with:
path: _build
key: build-${{ env.CACHE_VERSION }}-${{ github.ref }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
build-${{ env.CACHE_VERSION }}-${{ github.ref }}-
build-${{ env.CACHE_VERSION }}-
- run: |
sudo apt-get install software-properties-common
sudo apt-get update
sudo apt-get install -y certbot
- run: docker run -d -e "PEBBLE_VA_NOSLEEP=1" --net=host letsencrypt/pebble:v2.1.0 /usr/bin/pebble -strict
- run: mix deps.get
- name: Compile project
run: |
MIX_ENV=test mix compile --warnings-as-errors
MIX_ENV=dev mix compile --warnings-as-errors
MIX_ENV=prod mix compile --warnings-as-error
- run: mix format --check-formatted
- run: mix test
- run: mix dialyzer