From d7cffdeb910491418afdd21ff8fa12e96bb00c94 Mon Sep 17 00:00:00 2001 From: stord-engineering-account <77021775+stord-engineering-account@users.noreply.github.com> Date: Thu, 25 Jan 2024 15:37:29 -0700 Subject: [PATCH] chore: sync files with stordco/common-config-elixir (#27) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .credo.exs | 3 ++- .github/workflows/ci.yaml | 9 ++++++++- .github/workflows/common-config-elixir.yaml | 4 +++- .github/workflows/release.yaml | 1 + .github/workflows/staging.yaml | 1 + 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.credo.exs b/.credo.exs index e8c0ad6..c8cec3f 100644 --- a/.credo.exs +++ b/.credo.exs @@ -119,7 +119,8 @@ [ order: ~w(moduledoc behaviour use import require alias module_attribute defstruct callback macrocallback optional_callback)a, - ignore: [:type] + ignore: [:type], + ignore_module_attributes: [:contract, :decorate, :operation, :trace] ]}, {Credo.Check.Readability.StringSigils, []}, {Credo.Check.Readability.TrailingBlankLine, []}, diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f90b31e..1dfcf4e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,6 +12,7 @@ on: push: branches: - main + - code-freeze/** workflow_call: secrets: CI_SERVICE_KEY: @@ -28,6 +29,7 @@ concurrency: jobs: Credo: + if: ${{ !startsWith(github.head_ref, 'release-please--branches') }} runs-on: ubuntu-latest steps: @@ -46,6 +48,7 @@ jobs: run: mix credo --strict Dependencies: + if: ${{ !startsWith(github.head_ref, 'release-please--branches') }} runs-on: ubuntu-latest steps: @@ -64,6 +67,7 @@ jobs: run: mix deps.unlock --check-unused Dialyzer: + if: ${{ !startsWith(github.head_ref, 'release-please--branches') }} runs-on: ubuntu-latest steps: @@ -82,6 +86,7 @@ jobs: run: mix dialyzer --format github Documentation: + if: ${{ !startsWith(github.head_ref, 'release-please--branches') }} runs-on: ubuntu-latest steps: @@ -100,6 +105,7 @@ jobs: run: mix docs Format: + if: ${{ !startsWith(github.head_ref, 'release-please--branches') }} runs-on: ubuntu-latest steps: @@ -118,6 +124,7 @@ jobs: run: mix format --check-formatted Test: + if: ${{ !startsWith(github.head_ref, 'release-please--branches') }} name: Test (Elixir ${{ matrix.versions.elixir }} OTP ${{ matrix.versions.otp }}) runs-on: ubuntu-latest @@ -144,7 +151,7 @@ jobs: run: mix compile --warnings-as-errors - name: Test - run: mix coveralls.github --parallel + run: mix coveralls.github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/common-config-elixir.yaml b/.github/workflows/common-config-elixir.yaml index bfde769..68350fa 100644 --- a/.github/workflows/common-config-elixir.yaml +++ b/.github/workflows/common-config-elixir.yaml @@ -34,9 +34,11 @@ jobs: - name: Setup Elixir uses: stordco/actions-elixir/setup@v1 with: + elixir-version: "1.15" github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} hex-token: ${{ secrets.HEX_API_KEY }} - elixir-version: "1.15" + oban-fingerprint: ${{ secrets.OBAN_KEY_FINGERPRINT }} + oban-token: ${{ secrets.OBAN_LICENSE_KEY }} otp-version: "26.0" - name: Sync diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 41e4c47..27ebe73 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,6 +22,7 @@ jobs: with: command: manifest config-file: .release-please-config.json + default-branch: main manifest-file: .release-please-manifest.json release-type: elixir token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} diff --git a/.github/workflows/staging.yaml b/.github/workflows/staging.yaml index 9c446af..5000c45 100644 --- a/.github/workflows/staging.yaml +++ b/.github/workflows/staging.yaml @@ -6,6 +6,7 @@ on: push: branches: - main + - code-freeze/** workflow_dispatch: concurrency: