add ecdsa support for native client #132
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 27.0 | |
elixir-version: 1.17.1 | |
- 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 |