-
Notifications
You must be signed in to change notification settings - Fork 89
53 lines (50 loc) · 1.38 KB
/
h2spec.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
name: Run h2spec
on:
workflow_call:
inputs:
elixirs:
type: string
default: "[\"1.14.x\"]"
erlangs:
type: string
default: "[\"25.x\"]"
env:
MIX_ENV: test
jobs:
h2spec:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
elixir: ${{ fromJSON(inputs.elixirs) }}
otp: ${{ fromJSON(inputs.erlangs) }}
exclude:
- elixir: 1.12.x
otp: 25.x
- elixir: 1.14.x
otp: 23.x
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Disable compile warnings
run: echo "::remove-matcher owner=elixir-mixCompileWarning::"
- name: Retrieve mix dependencies cache
uses: actions/cache@v4
id: mix-cache
with:
path: |
deps
_build
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-
- name: Install mix dependencies
if: steps.mix-cache.outputs.cache-hit != 'true'
run: |
mix deps.get
- name: Run h2spec test
run: mix test --only external_conformance test/bandit/http2/h2spec_test.exs