Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use versions from .tool-versions for CI #219

Merged
merged 3 commits into from Dec 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 7 additions & 10 deletions .github/workflows/ci.yaml
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