Skip to content

Add official support to Goth >= 1.3 (#2) #25

Add official support to Goth >= 1.3 (#2)

Add official support to Goth >= 1.3 (#2) #25

Workflow file for this run

name: Elixir CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
WAFFLE_BUCKET: ${{ secrets.WAFFLE_BUCKET }}
jobs:
build:
name: Build and test (OTP ${{ matrix.otp }} | Elixir ${{ matrix.elixir }})
runs-on: ubuntu-latest
strategy:
matrix:
include:
- elixir: '1.12'
otp: '24'
- elixir: '1.13'
otp: '24'
- elixir: '1.14'
otp: '25'
- elixir: '1.15'
otp: '26'
- elixir: '1.16'
otp: '26'
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
id: beam
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore dependencies cache
uses: actions/cache@v4
id: mix-cache
with:
path: deps
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-
- name: Install dependencies
run: mix deps.get --only test
- name: Compile & lint dependencies
run: mix compile --warnings-as-errors
env:
MIX_ENV: test
- name: Check Formatting
run: mix format --check-formatted
- name: Run tests
run: mix test