-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (28 loc) · 957 Bytes
/
test.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
name: Run tests
on:
push:
branches: ["*"]
tags: ["v*"]
pull_request:
branches: ["main"]
jobs:
flow-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Elixir install
uses: erlef/setup-beam@v1
with:
elixir-version: "1.17"
otp-version: "27"
- name: Fetch flow tester
uses: actions/checkout@v4
with:
repository: praekeltfoundation/flow_tester
ref: v0.3.6
path: flow_tester
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Check formatting
run: mix format --check-formatted "Browsable FAQs/QA/tests/*.exs" "Push messaging/QA/tests/*.exs"
- name: Test flows
run: ./flow_tester/run_flow_tests.exs "Browsable FAQs/QA/tests/" "Push messaging/QA/tests/"