Skip to content

Commit

Permalink
Use versions from .tool-versions for CI (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyBG authored Dec 6, 2022
1 parent 7a18a92 commit 852a351
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ concurrency:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
otp-version: [25.0]
elixir-version: [1.13]

services:
db:
Expand All @@ -36,23 +32,24 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: erlef/setup-elixir@v1
- uses: erlef/setup-beam@v1
id: setup-beam
with:
otp-version: ${{ matrix.otp-version }}
elixir-version: ${{ matrix.elixir-version }}
version-file: .tool-versions
version-type: strict

- uses: actions/cache@v3
with:
path: |
deps
_build
priv/plts
key: ${{ runner.os }}-mix-${{ matrix.otp-version }}-${{ matrix.elixir-version }}-${{ hashFiles(format('{0}/mix.lock', github.workspace)) }}
key: ${{ runner.os }}-mix-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-${{ hashFiles(format('{0}/mix.lock', github.workspace)) }}

- uses: actions/setup-node@v3
with:
node-version: 16.15
cache: 'npm'
node-version-file: .tool-versions
cache: npm

- name: Setup environment variables
uses: c-py/action-dotenv-to-setenv@v2
Expand Down

0 comments on commit 852a351

Please sign in to comment.