-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1007 Bytes
/
website.yml
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
name: website
on:
push:
branches:
- main
pull_request:
concurrency:
group: website-${{ github.head_ref }}
cancel-in-progress: true
env:
DEBUG: 1
OTP_VERSION: 25.0.4
ELIXIR_VERSION: 1.14.1
MIX_ENV: test
jobs:
test:
name: Test
runs-on: 'ubuntu-latest'
timeout-minutes: 15
services:
db:
image: postgres:15
ports: ['5432:5432']
env:
POSTGRES_PASSWORD: postgres
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-elixir@v1
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
- name: Restore Cache
uses: actions/cache@v3
id: mix-cache
with:
path: |
deps
_build
_site
key: mix-${{ hashFiles('mix.lock') }}
- run: mix deps.get
- run: mix test