-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 984 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
name: website
on:
push:
branches:
- main
pull_request:
concurrency:
group: website-${{ github.head_ref }}
cancel-in-progress: true
env:
DEBUG: 1
OTP_VERSION: 26.1.2
ELIXIR_VERSION: 1.15.6
MIX_ENV: test
jobs:
test:
name: Test
runs-on: 'ubuntu-latest'
timeout-minutes: 15
services:
db:
image: postgres:16
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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: jdx/mise-action@v2
- name: Restore Cache
uses: actions/cache@v4
id: mix-cache
with:
path: |
deps
_build
_site
key: mix-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ hashFiles('mix.lock') }}
- run: mix deps.get
- run: mix test