-
Notifications
You must be signed in to change notification settings - Fork 0
169 lines (148 loc) · 4.27 KB
/
ci.yml
File metadata and controls
169 lines (148 loc) · 4.27 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Elixir CI
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]
paths-ignore:
- '**/*.md'
- 'LICENSE'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test-latest:
strategy:
matrix:
include:
- os: ubuntu-22.04
elixir-version: '1.18.4'
otp-version: '28.0.1'
name: Build and test on ${{ matrix.os }} ${{ matrix.elixir-version }} ${{ matrix.otp-version }}
runs-on: ${{ matrix.os }}
timeout-minutes: 5
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v6
- name: Set up Elixir
uses: erlef/setup-beam@e6d7c94229049569db56a7ad5a540c051a010af9
id: setup-beam
with:
elixir-version: ${{ matrix.elixir-version }}
otp-version: ${{ matrix.otp-version }}
- name: Install dependencies
run: mix deps.get
- name: Check format
run: mix format --check-formatted --migrate
- name: Run tests
run: mix test
- name: Check by nstandard
run: mix check
- name: Check documents
run: mix docs --warning-as-errors
build-and-test-ubuntu:
strategy:
matrix:
include:
- os: ubuntu-22.04
elixir-version: '1.19.0-rc.0'
otp-version: '28.0.1'
- os: ubuntu-22.04
elixir-version: '1.18.4'
otp-version: '27.3.4.1'
- os: ubuntu-22.04
elixir-version: '1.17.3'
otp-version: '27.3.4.1'
- os: ubuntu-22.04
elixir-version: '1.16.3'
otp-version: '26.2.5.13'
- os: ubuntu-22.04
elixir-version: '1.15.8'
otp-version: '25.3.2.21'
name: Build and test on ${{ matrix.os }} ${{ matrix.elixir-version }} ${{ matrix.otp-version }}
needs: build-and-test-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 5
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v6
- name: Set up Elixir
uses: erlef/setup-beam@e6d7c94229049569db56a7ad5a540c051a010af9
id: setup-beam
with:
elixir-version: ${{ matrix.elixir-version }}
otp-version: ${{ matrix.otp-version }}
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test
build-and-test-windows:
strategy:
matrix:
include:
- os: windows-2022
elixir-version: '1.19.0-rc.0'
otp-version: '28.0.1'
- os: windows-2022
elixir-version: '1.18.4'
otp-version: '28.0.1'
name: Build and test on ${{ matrix.os }} ${{ matrix.elixir-version }} ${{ matrix.otp-version }}
needs: build-and-test-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 5
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v6
- name: Set up Elixir
uses: erlef/setup-beam@e6d7c94229049569db56a7ad5a540c051a010af9
id: setup-beam-windows
with:
elixir-version: ${{ matrix.elixir-version }}
otp-version: ${{ matrix.otp-version }}
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test
build-and-test-macos:
strategy:
matrix:
include:
- os: macos-14-xlarge
elixir-version: '1.18.4'
otp-version: '28.0.1'
name: Build and test on ${{ matrix.os }} ${{ matrix.elixir-version }} ${{ matrix.otp-version }}
needs: build-and-test-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 5
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v6
- name: Set up Elixir
uses: jdx/mise-action@v3
with:
version: '2025.7.2'
install: true
cache: true
experimental: true
log_level: debug
tool_versions: |
erlang: ${{ matrix.otp-version }}
elixir: ${{ matrix.elixir-version }}
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test