Skip to content

Bump to 1.15.0

Bump to 1.15.0 #253

Workflow file for this run

name: Test
on: [pull_request]
jobs:
test:
name: ${{ matrix.tag }}
strategy:
matrix:
tag: ['elixir-1-11', 'debian-buster', 'alpine-3-16-2', 'alpine-3-17-3', 'alpine-3-18-4']
env:
MIX_ENV: test
runs-on: ubuntu-latest
container:
image: ghcr.io/bitcrowd/chromic_pdf:${{ matrix.tag }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
options: --privileged --user 1001
steps:
- uses: actions/checkout@v3
- name: Dependencies cache
id: deps-cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-${{ matrix.tag }}-deps-v1-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Build artifacts cache
id: build-cache
uses: actions/cache@v3
with:
path: _build
key: ${{ runner.os }}-${{ matrix.tag }}-build-v1-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- run: mix local.hex --force && mix local.rebar
- run: mix deps.get
- run: mix compile
- run: mix chromic_pdf.warm_up
- run: mix test || mix test --failed || mix test --failed