-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (42 loc) · 1.03 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
43
44
45
46
47
48
49
50
51
52
---
name: CI
"on":
push:
branches:
- main
pull_request:
branches:
- "*"
workflow_dispatch: {}
jobs:
ci:
name: CI
strategy:
fail-fast: false
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: erlef/setup-beam@b9c58b0450cd832ccdb3c17cc156a47065d2114f # v1.18.1
with:
version-type: strict
version-file: .tool-versions
- name: top-level CI
run: |
rebar3 ci
- name: example-level CI
run: |
pushd example
rebar3 ci
popd
- name: check formatting
run: |
rebar3 fmt --check
- name: test the example release
run: |
sudo apt-get -y update
sudo apt-get -y install shelltestrunner
pushd example
rebar3 release
_build/default/rel/simpler_cowboy_rest_example/bin/simpler_cowboy_rest_example daemon
popd
shelltest tests/example.test