-
Notifications
You must be signed in to change notification settings - Fork 37
42 lines (37 loc) · 1.08 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
name: Build and Test
on:
push:
branches: [main]
paths-ignore:
- '**.md' #Do not need to run CI for markdown changes.
pull_request:
branches: [main]
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
build-test:
strategy:
# We want to know the status of all OTP versions, not just if one of them fails.
fail-fast: false
matrix:
versions:
- {os: 'ubuntu-20.04', otp: '21.x', rebar: '3.15.2'}
- {os: 'ubuntu-22.04', otp: '25.x', rebar: '3.18.0'}
- {os: 'ubuntu-22.04', otp: '27.x', rebar: '3.23.0'}
runs-on: ${{ matrix.versions.os }}
name: Build and Test - ${{ matrix.versions.otp }}
steps:
- uses: erlef/setup-beam@v1
with:
version-type: loose
otp-version: ${{ matrix.versions.otp }}
rebar3-version: ${{ matrix.versions.rebar }}
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/ci
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
env:
OTP_VER: ${{ matrix.versions.otp }}