-
-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (45 loc) · 1.45 KB
/
elixir_tests.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
54
55
56
57
58
name: Smoke Test
on: [push, pull_request, workflow_dispatch]
jobs:
build_and_test:
runs-on: ubuntu-20.04
container:
image: hexpm/elixir:1.16.0-erlang-26.2.1-debian-bookworm-20231009
steps:
- name: Install git
run: |
apt-get update
apt-get install -y git
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: recursive
- name: Update submodules
run: |
git config --global --add safe.directory /__w/elixir-test-runner/elixir-test-runner
git submodule update --init --recursive --remote
- name: Install / Build Dependencies
run: |
apt -y install jq
cd exercism_test_helper
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run ExercismTestHelper unit tests
run: |
cd exercism_test_helper
mix test
- name: Build Escript
run: |
cd exercism_test_helper
MIX_ENV=prod mix escript.build
mv exercism_test_helper ../bin
- name: Run tests on all exercises exemploid solutions
run: |
./bin/test_all_exercises.sh
smoke_test_in_docker:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Run Smoke Test in Docker
run: bin/run-tests-in-docker.sh