forked from smarkets/erlang-bcrypt
-
Notifications
You must be signed in to change notification settings - Fork 11
61 lines (54 loc) · 1.59 KB
/
run_test_cases.yaml
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
name: Run test cases
on: [push, pull_request]
jobs:
mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: prepare
run: |
brew install curl zip unzip gnu-sed erlang [email protected]
echo "/usr/local/bin:$PATH" >> ~/.bashrc
- name: install rebar3
run: |
curl -fsSL -o /usr/local/bin/rebar3 https://s3.amazonaws.com/rebar3/rebar3
chmod +x /usr/local/bin/rebar3
echo "/usr/local/bin:$PATH" >> ~/.bashrc
- name: run eunit
run: |
rebar3 eunit
linux:
runs-on: ubuntu-latest
strategy:
matrix:
builder:
- 5.4-4
otp:
- 27.2-2
elixir:
- 1.17.3
arch:
- amd64
- arm64
os:
- ubuntu24.04
- ubuntu22.04
- ubuntu20.04
- debian12
- debian11
- debian10
- el9
- el8
- el7
- amzn2
- amzn2023
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: docker/setup-buildx-action@0d103c3126aa41d772a8362f6aa67afac040f80c # v3.1.0
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
with:
platforms: ${{ matrix.arch }}
- name: run eunit
run: |
IMAGE=ghcr.io/emqx/emqx-builder/${{ matrix.builder }}:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}
docker run --rm -v $(pwd):/wd --workdir /wd --platform=linux/${{ matrix.arch }} $IMAGE bash -euc 'make eunit'