-
Notifications
You must be signed in to change notification settings - Fork 34
55 lines (43 loc) · 1.56 KB
/
site_encrypt.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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