-
Notifications
You must be signed in to change notification settings - Fork 78
91 lines (77 loc) · 2.16 KB
/
elixir.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: TDS CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
tests:
name: Unit Tests
runs-on: ubuntu-20.04
services:
mssql:
image: mcr.microsoft.com/${{ matrix.mssql.version }}
env:
ACCEPT_EULA: Y
SA_PASSWORD: some!Password
ports:
- 1433:1433
strategy:
fail-fast: false
matrix:
mssql:
- version: "mssql/server:2017-latest"
- version: "mssql/server:2022-latest"
- version: "azure-sql-edge:latest"
pair:
- otp: 23.3
elixir: 1.13.4
include:
- mssql:
version: "mssql/server:2022-latest"
pair:
otp: 24.3
elixir: 1.14.4
lint: lint
- mssql:
version: "mssql/server:2022-latest"
pair:
otp: 23.3
elixir: 1.13.4
lint: skip_lint
env:
ACCEPT_EULA: Y
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Install MSSql Client Tools
run: |
sudo apt-get update
sudo apt-get install -y mssql-tools unixodbc-dev
- uses: actions/checkout@v2
- name: Setup elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.pair.otp}}
elixir-version: ${{matrix.pair.elixir}}
- uses: actions/cache@v2
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{matrix.pair.elixir}}-${{matrix.pair.otp}}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{matrix.pair.elixir}}-${{matrix.pair.otp}}-
- name: Install Dependencies
run: mix deps.get
- run: mix format --check-formatted
if: ${{ matrix.lint == 'lint' }}
- run: mix deps.unlock --check-unused
if: ${{ matrix.lint == 'lint' }}
- run: mix deps.compile
- run: mix compile --warnings-as-errors
if: ${{ matrix.lint == 'lint' }}
- name: Run Tests
run: |
export PATH=/opt/mssql-tools/bin:$PATH
mix test