Skip to content

Bulk api routing support #2

Bulk api routing support

Bulk api routing support #2

Workflow file for this run

name: Build & Publish
on:
pull_request:
push:
branches:
- "*"
# by default, permissions are read-only, read + write is required for git pushes
permissions:
contents: write
env:
MIX_ENV: test
jobs:
test:
runs-on: "ubuntu-latest"
name: Test Elixir ${{ matrix.elixir }}, OTP ${{ matrix.otp }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
elixir: ["1.15", "1.16"]
otp: ["26", "25"]
include:
- elixir: "1.16"
otp: "25"
lint: lint
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Restore Dependency Cache
uses: actions/cache@v3
id: cache-deps
with:
path: |
deps
_build
key: |
mix-${{ runner.os }}-${{matrix.elixir}}-${{matrix.otp}}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
mix-${{ runner.os }}-${{matrix.elixir}}-${{matrix.otp}}-
- run: mix deps.get
if: steps.cache-deps.outputs.cache-hit != 'true'
- run: mix deps.compile --warnings-as-errors
if: steps.cache-deps.outputs.cache-hit != 'true'
- name: Check for unused deps
run: mix deps.unlock --check-unused
if: ${{matrix.lint}}
- run: mix format --check-formatted
if: ${{matrix.lint}}
- run: mix test
- name: Build & Publish
run: |
mix hex.build
mix hex.publish --yes
if: ${{matrix.lint}}
env:
MIX_ENV: dev
HEX_API_KEY: ${{ secrets.HEX_ORGANIZATION_WRITE_KEY }}