-
Notifications
You must be signed in to change notification settings - Fork 12
39 lines (34 loc) · 986 Bytes
/
check-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
name: Check elixir
on:
push:
paths:
# Set this to the directory of the template
- elixir/**
- .github/workflows/check-elixir.yml
workflow_dispatch:
workflow_call:
concurrency:
group: check-elixir-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
path: ./tmp
- run: nix flake new -t ./tmp#elixir ./work
- name: Prepare the project
working-directory: work
run: |
git init
git add .
- name: Check executables
run: |
nix develop -L --command mix help
nix develop -L --command elixirc --version
working-directory: work