chore: built with Nix #19
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: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
mix_check: | |
name: OTP ${{ matrix.otp }} / Elixir ${{ matrix.elixir }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
elixir: ['1.15.x'] | |
otp: ['26.x', 25.x', '24.x'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ matrix.otp }} | |
elixir-version: ${{ matrix.elixir }} | |
- name: Restore dependencies cache | |
uses: actions/cache@v3 | |
with: | |
path: deps | |
key: ${{ runner.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Run mix check | |
run: mix check |