-
Notifications
You must be signed in to change notification settings - Fork 460
38 lines (36 loc) · 996 Bytes
/
presubmit.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
name: Presubmit
on:
pull_request:
branches:
- main
jobs:
tests:
strategy:
matrix:
include:
- elixir: "1.7.4-otp-22"
otp: "22.3.4.26"
- elixir: "1.12.3-otp-23"
otp: "23.3.4.19"
- elixir: "1.13.4-otp-24"
otp: "24.1.7"
fail-fast: false
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Elixir ${{ matrix.elixir }} on OTP ${{ matrix.otp }}
uses: erlef/setup-beam@v1
with:
otp-version: "${{ matrix.otp }}"
elixir-version: "${{ matrix.elixir }}"
version-type: strict
- name: Run presubmits
run: mix do deps.get, presubmit --pr ${{ github.event.pull_request.number }}
required-checks:
needs: tests
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Required checks collector
run: 'test "${{ needs.tests.result }}" = "success"'