Skip to content

Use the latest version of Elixir and Erlang #230

Use the latest version of Elixir and Erlang

Use the latest version of Elixir and Erlang #230

Workflow file for this run

name: Elixir CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
event_year: [2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022]
steps:
- uses: actions/checkout@v3
- name: Setup Elixir
uses: erlef/setup-beam@v1
version-file: .tool-versions

Check failure on line 18 in .github/workflows/elixir.yml

View workflow run for this annotation

GitHub Actions / Elixir CI

Invalid workflow file

The workflow is not valid. .github/workflows/elixir.yml (Line: 18, Col: 9): Unexpected value 'version-file' .github/workflows/elixir.yml (Line: 19, Col: 9): Unexpected value 'version-type'
version-type: strict
- name: Setup deps cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: ${{ runner.os }}-mix-
- name: Setup build cache
uses: actions/cache@v3
id: build-cache
with:
path: _build
key: ${{ runner.os }}-build-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Tests
run: mix test test/y${{ matrix.event_year }}