Attempt to move diff generation to this repository #51
Workflow file for this run
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: [pull_request] | |
jobs: | |
test: | |
name: "Test" | |
runs-on: ubuntu-20.04 | |
# See https://hexdocs.pm/elixir/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp | |
strategy: | |
matrix: | |
include: | |
- pair: | |
otp: "23.3.4.20" | |
elixir: "1.14.5" | |
- pair: | |
otp: "27.0" | |
elixir: "1.17.1" | |
lint: lint | |
env: | |
MIX_ENV: test | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup BEAM | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.pair.otp}} | |
elixir-version: ${{matrix.pair.elixir}} | |
- name: Fetch Hex Cache | |
uses: actions/cache@v4 | |
id: hex-cache | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ runner.os }}-mix-${{ hashFiles('mix.lock') }} | |
restore-keys: | | |
${{ runner.os }}-mix- | |
- name: Check Code Format | |
run: mix format --check-formatted | |
if: ${{matrix.lint}} | |
- name: Run Tests | |
run: | | |
mix deps.get | |
mix test | |
- name: Publish Results | |
uses: dorny/test-reporter@v1 | |
if: ${{ failure() }} | |
with: | |
fail-on-error: "false" | |
list-suites: failed | |
list-tests: failed | |
name: Results | |
path: _build/test/lib/oapi_generator/*.xml | |
reporter: java-junit |