Skip to content

Commit 1a21361

Browse files
authored
Merge pull request #28 from MikaelFangel/ci-update-workflow
ci: add workflow with dependencies unlocked
2 parents 9f97956 + ad51cf5 commit 1a21361

File tree

2 files changed

+42
-9
lines changed

2 files changed

+42
-9
lines changed

.github/workflows/elixir.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
6-
name: Elixir CI
1+
name: Build
72

83
on:
94
pull_request:
@@ -22,10 +17,10 @@ jobs:
2217
steps:
2318
- uses: actions/checkout@v4
2419
- name: Set up Elixir
25-
uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21 # v1.16.0
20+
uses: erlef/setup-beam@v1
2621
with:
27-
elixir-version: '1.17.3' # [Required] Define the Elixir version
28-
otp-version: '27.0' # [Required] Define the Erlang/OTP version
22+
elixir-version: '1.17.3'
23+
otp-version: '27.0'
2924
- name: Restore dependencies cache
3025
uses: actions/cache@v4
3126
with:

.github/workflows/elixir_unlocked.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build Unlocked
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
schedule:
7+
- cron: "0 10 * * 0"
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
14+
jobs:
15+
build:
16+
name: Build and test unlocked
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Set up Elixir
22+
uses: erlef/setup-beam@v1
23+
with:
24+
elixir-version: '1.17.3'
25+
otp-version: '27.0'
26+
- name: Restore dependencies cache
27+
uses: actions/cache@v4
28+
with:
29+
path: deps
30+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
31+
restore-keys: ${{ runner.os }}-mix-
32+
- name: Unlock dependencies
33+
run: mix deps.unlock --all
34+
- name: Install dependencies
35+
run: mix deps.get
36+
- name: Run tests
37+
run: mix test
38+

0 commit comments

Comments
 (0)