Use the latest version of Elixir and Erlang #230
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Elixir CIInvalid workflow file
|
||
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 }} |