-
-
Notifications
You must be signed in to change notification settings - Fork 563
79 lines (74 loc) · 2.06 KB
/
elixir.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
name: Elixir
permissions:
contents: read
on:
merge_group:
pull_request:
paths:
- ".github/workflows/elixir.yml"
- ".github/actions/**"
- "**.ex"
- "**.exs"
- "**/mix.lock"
- "**/priv/**"
- "**/native/**"
- "**.rs"
- "**.toml"
- "**/Cargo.lock"
- "**/Makefile"
- "tools/nix/**"
push:
paths:
- ".github/workflows/elixir.yml"
- ".github/actions/**"
- "**.ex"
- "**.exs"
- "**/mix.lock"
- "**/priv/**"
- "**/native/**"
- "**.rs"
- "**.toml"
- "**/Cargo.lock"
- "**/Makefile"
- "tools/nix/**"
branches:
- develop
schedule:
# We only save cache when a cron job is started, this is to ensure
# that we don't save cache on every push causing excessive caching
# and github deleting useful caches we use in our workflows, we now
# run a cron job every 2 hours so as to update the cache store with the
# latest data so that we don't have stale cache.
- cron: "0 */2 * * *"
workflow_dispatch:
inputs:
commit_sha:
description: Git commit sha, on which, to run this workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
defaults:
run:
shell: nix develop ../../tools/nix#elixir --command bash {0}
jobs:
test:
name: Elixir - test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.inputs.commit_sha }}
- uses: ./.github/actions/cache_nix
with:
cache-unique-id: elixir
id: nix-installer
- uses: ./.github/actions/cache_elixir
- uses: ./.github/actions/cache_rust
with:
job_name: "elixir-cache"
- run: make test
working-directory: implementations/elixir
- run: make lint
working-directory: implementations/elixir
- uses: ./.github/actions/nix_upload_store
if: ${{ steps.nix-installer.outputs.cache-hit != 'true' }}