-
-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (83 loc) · 2.45 KB
/
Copy pathelixir-ci.yml
File metadata and controls
100 lines (83 loc) · 2.45 KB
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
92
93
94
95
96
97
98
99
100
# SPDX-License-Identifier: MPL-2.0
name: Elixir CI
on:
push:
branches: [main]
paths:
- 'elixir-mcp/**'
- '.github/workflows/elixir-ci.yml'
pull_request:
branches: [main]
paths:
- 'elixir-mcp/**'
- '.github/workflows/elixir-ci.yml'
permissions:
contents: read
jobs:
test:
name: Test (Elixir ${{ matrix.elixir }} / OTP ${{ matrix.otp }})
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
defaults:
run:
working-directory: elixir-mcp
strategy:
matrix:
elixir: ['1.15', '1.16', '1.17']
otp: ['26']
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Elixir
uses: erlef/setup-beam@fc68ffb90438ef2936bbb3251622353b3dcb2f93 # v1.24.0
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Cache deps
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: |
elixir-mcp/deps
elixir-mcp/_build
key: mix-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('elixir-mcp/mix.lock') }}
restore-keys: |
mix-${{ matrix.elixir }}-${{ matrix.otp }}-
- name: Install dependencies
run: mix deps.get
- name: Compile (warnings as errors)
run: mix compile --warnings-as-errors
- name: Check formatting
run: mix format --check-formatted
- name: Run tests
run: mix test --trace
dialyzer:
name: Dialyzer
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
defaults:
run:
working-directory: elixir-mcp
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Elixir
uses: erlef/setup-beam@fc68ffb90438ef2936bbb3251622353b3dcb2f93 # v1.24.0
with:
elixir-version: '1.17'
otp-version: '26'
- name: Cache deps
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: |
elixir-mcp/deps
elixir-mcp/_build
key: dialyzer-${{ hashFiles('elixir-mcp/mix.lock') }}
restore-keys: |
dialyzer-
- name: Install dependencies
run: mix deps.get
- name: Run Dialyzer
run: mix dialyzer
continue-on-error: true