-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (53 loc) · 1.67 KB
/
ci.yml
File metadata and controls
63 lines (53 loc) · 1.67 KB
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
# SPDX-FileCopyrightText: 2026 artefactory contributors <https://github.com/diffo-dev/artefactory/graphs/contributors>
# SPDX-License-Identifier: MIT
name: CI
on:
push:
branches: [dev]
pull_request:
branches: [dev]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
reuse:
name: REUSE compliance
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fsfe/reuse-action@v4
test:
name: Tests (Elixir ${{ matrix.elixir }} / OTP ${{ matrix.otp }})
runs-on: ubuntu-latest
strategy:
matrix:
include:
- elixir: "1.19"
otp: "28"
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Cache deps (artefact)
uses: actions/cache@v4
with:
path: artefact/deps
key: deps-artefact-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('artefact/mix.lock') }}
restore-keys: deps-artefact-${{ matrix.elixir }}-${{ matrix.otp }}-
- name: Cache deps (artefact_kino)
uses: actions/cache@v4
with:
path: artefact_kino/deps
key: deps-artefact_kino-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('artefact_kino/mix.lock') }}
restore-keys: deps-artefact_kino-${{ matrix.elixir }}-${{ matrix.otp }}-
- name: Test artefact
working-directory: artefact
env:
MIX_ENV: test
run: mix do deps.get + test
- name: Test artefact_kino
working-directory: artefact_kino
env:
MIX_ENV: test
run: mix do deps.get + test