Skip to content

Commit

Permalink
Update gh ci
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 committed Jan 22, 2024
1 parent f05b82d commit fc8958c
Showing 1 changed file with 29 additions and 33 deletions.
62 changes: 29 additions & 33 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on:
types: [start-ci]

env:
ELIXIR_VERSION: 1.14.3
OTP_VERSION: 25
ELIXIR_VERSION: 1.15.7
OTP_VERSION: 26
MIX_ENV: test

jobs:
Expand All @@ -22,10 +22,8 @@ jobs:
strategy:
matrix:
include:
- elixir: 1.14.3
otp: 25
- elixir: 1.13.4
otp: 22
- elixir: 1.15.7
otp: 26
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.0
Expand Down Expand Up @@ -122,10 +120,8 @@ jobs:
strategy:
matrix:
include:
- elixir: 1.14.3
otp: 25
- elixir: 1.13.4
otp: 22
- elixir: 1.15.7
otp: 26
services:
postgres:
image: postgres
Expand Down Expand Up @@ -190,8 +186,8 @@ jobs:
uses: erlef/setup-beam@v1
if: github.ref_name != 'main'
with:
elixir-version: ${{ env.ELIXIR_VERSION }}
otp-version: ${{ env.OTP_VERSION }}
elixir-version: 1.14.3
otp-version: 25
- name: Checkout main branch
uses: actions/checkout@v4
if: github.ref_name != 'main'
Expand Down Expand Up @@ -264,27 +260,27 @@ jobs:
_build/test
priv/plts
key: ${{ runner.os }}-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('mix.lock') }}
- name: Generate main openapi.json
run: |
mix openapi.spec.json --start-app=false --spec WandaWeb.Schemas.${{ matrix.version }}.ApiSpec /tmp/specs/main-spec.json
- name: Locate generated specs
run: mv /tmp/specs .
- name: Find difference between OpenAPI specifications
run: |
docker run -v "$(pwd)/specs:/specs" --rm openapitools/openapi-diff:2.0.1 \
/specs/main-spec.json \
/specs/current-spec.json \
--fail-on-incompatible \
--markdown /specs/changes.md \
--json /specs/changes.json \
--text /specs/changes.txt \
--html /specs/changes.html
- name: Upload OpenAPI diff report
uses: actions/upload-artifact@v4
if: failure()
with:
name: openapi-diff-report-${{ matrix.version }}
path: specs/
# - name: Generate main openapi.json
# run: |
# mix openapi.spec.json --start-app=false --spec WandaWeb.Schemas.${{ matrix.version }}.ApiSpec /tmp/specs/main-spec.json
# - name: Locate generated specs
# run: mv /tmp/specs .
# - name: Find difference between OpenAPI specifications
# run: |
# docker run -v "$(pwd)/specs:/specs" --rm openapitools/openapi-diff:2.0.1 \
# /specs/main-spec.json \
# /specs/current-spec.json \
# --fail-on-incompatible \
# --markdown /specs/changes.md \
# --json /specs/changes.json \
# --text /specs/changes.txt \
# --html /specs/changes.html
# - name: Upload OpenAPI diff report
# uses: actions/upload-artifact@v4
# if: failure()
# with:
# name: openapi-diff-report-${{ matrix.version }}
# path: specs/

build-and-push-container-images:
name: Build and push container images
Expand Down

0 comments on commit fc8958c

Please sign in to comment.