update github ci

This commit is contained in:
Graham McIntire 2023-12-17 12:14:47 -06:00
parent 2a45b071c1
commit 8b28c57a74

View file

@ -6,9 +6,9 @@ name: Elixir CI
# different name for the main branch like "master" or "production". # different name for the main branch like "master" or "production".
on: on:
push: push:
branches: [ "main" ] # adapt branch for project branches: ["main"] # adapt branch for project
pull_request: pull_request:
branches: [ "main" ] # adapt branch for project branches: ["main"] # adapt branch for project
# Sets the ENV `MIX_ENV` to `test` for running tests # Sets the ENV `MIX_ENV` to `test` for running tests
env: env:
@ -24,8 +24,8 @@ jobs:
# Additional services can be defined here if required. # Additional services can be defined here if required.
services: services:
db: db:
image: postgres:12 image: postgres:15
ports: ['5432:5432'] ports: ["5432:5432"]
env: env:
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
options: >- options: >-
@ -40,8 +40,8 @@ jobs:
# Specify the OTP and Elixir versions to use when building # Specify the OTP and Elixir versions to use when building
# and running the workflow steps. # and running the workflow steps.
matrix: matrix:
otp: ['25.2'] otp: ["26.2"]
elixir: ['1.14.3'] elixir: ["1.15.7"]
steps: steps:
# Step: Setup Elixir + Erlang image as the base. # Step: Setup Elixir + Erlang image as the base.
- name: Set up Elixir - name: Set up Elixir