-
Notifications
You must be signed in to change notification settings - Fork 103
48 lines (45 loc) · 1.25 KB
/
h2spec.yml
File metadata and controls
48 lines (45 loc) · 1.25 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
name: Run h2spec
on:
workflow_call:
inputs:
elixirs:
type: string
default: "[\"1.18.x\"]"
erlangs:
type: string
default: "[\"27.x\"]"
env:
MIX_ENV: test
jobs:
h2spec:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
elixir: ${{ fromJSON(inputs.elixirs) }}
otp: ${{ fromJSON(inputs.erlangs) }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- 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@v5
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 slow test/bandit/http2/h2spec_test.exs