This repository has been archived by the owner on Dec 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
92 lines (79 loc) · 2.01 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ci-tests-${{ github.ref }}-1
cancel-in-progress: true
jobs:
front-end-build:
defaults:
run:
working-directory: front_end
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Set up Elm
uses: jorelali/setup-elm@v5
with:
elm-version: 0.19.1
- name: Install Global Dependencies
run: >
npm install -g
elm-test
create-elm-app
elm-verify-examples
elm-coverage
elm-analyse
- name: Install Local Dependencies
run: |
npm install
cp .env.example .env
- name: Run Tests
run: elm-test
- name: Run Verified Examples
run: elm-verify-examples
- name: Run Elm Coverage
run: elm-coverage
- name: Run Elm Analyse
run: elm-analyse
back-end-build:
defaults:
run:
working-directory: back_end
runs-on: ubuntu-latest
env:
MIX_ENV: test
strategy:
matrix:
elixir: ['1.15.7']
otp: ['26.1.2']
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- name: Get deps cache
uses: actions/cache@v2
with:
path: deps/
key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
- name: Get build cache
uses: actions/cache@v2
with:
path: _build/test/
key: build-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
- name: Install Dependencies
run: mix deps.get
- name: Check Dependencies
run: mix hex.outdated
- name: Run Tests
run: mix test