Skip to content

Commit

Permalink
Run Elixir tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
g-andrade committed Oct 1, 2023
1 parent 2a02b1b commit 2578e59
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,22 @@ jobs:
with:
path: ./.github/workflows/otp_version_to_rebar3_version.json

- id: otp-version-to-elixir-version
name: "Read #{OTP version => Elixir version} map"
uses: juliangruber/read-file-action@v1
with:
path: ./.github/workflows/otp_version_to_elixir_version.json

- id: setup-beam
name: Setup BEAM
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp_vsn}}
# about rebar3-version: https://stackoverflow.com/a/64405821
# about rebar3 and elixir versions: https://stackoverflow.com/a/64405821
rebar3-version: |
${{ fromJson(steps.otp-version-to-rebar3-version.outputs.content)[matrix.otp_vsn] }}
elixir-version: |
${{ fromJson(steps.otp-version-to-elixir-version.outputs.content)[matrix.otp_vsn] }}
env:
GITHUB_TOKEN: ${{ github.token }}

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/otp_version_to_elixir_version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"22.3": "1.13",
"23.3": "1.14",
"24.3": "1.14",
"25.3": "1.15",
"26.1": "1.15"
}

0 comments on commit 2578e59

Please sign in to comment.