-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (45 loc) · 1.3 KB
/
ci.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
52
53
54
55
56
57
name: Elixir CI
on:
push:
pull_request:
branches: [ $default-branch ]
jobs:
test:
services:
postgres:
image: postgres:10.10
env:
POSTGRES_USER: nexpo
POSTGRES_PASSWORD: nexpo
POSTGRES_DB: nexpo-test
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-elixir@885971a72ed1f9240973bd92ab57af8c1aa68f24
with:
elixir-version: '1.10.3'
otp-version: '22.3'
- name: Set up Ruby
uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
with:
ruby-version: 2.6
- name: Install fakes3
run: gem install fakes3
- name: Set up NPM
uses: actions/setup-node@v2
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: npm run setup
- name: Run tests
run: npm run old-test