From fc8958c61cee89af4baae4caba37d50f4b464d19 Mon Sep 17 00:00:00 2001 From: arbulu89 Date: Mon, 22 Jan 2024 10:27:36 +0100 Subject: [PATCH] Update gh ci --- .github/workflows/ci.yaml | 62 ++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 33 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 504a32bf..66632606 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: @@ -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 @@ -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 @@ -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' @@ -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