Skip to content

Commit

Permalink
chore: sync files with stordco/common-config-elixir (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 290365b commit d7cffde
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .credo.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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, []},
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
push:
branches:
- main
- code-freeze/**
workflow_call:
secrets:
CI_SERVICE_KEY:
Expand All @@ -28,6 +29,7 @@ concurrency:

jobs:
Credo:
if: ${{ !startsWith(github.head_ref, 'release-please--branches') }}
runs-on: ubuntu-latest

steps:
Expand All @@ -46,6 +48,7 @@ jobs:
run: mix credo --strict

Dependencies:
if: ${{ !startsWith(github.head_ref, 'release-please--branches') }}
runs-on: ubuntu-latest

steps:
Expand All @@ -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:
Expand All @@ -82,6 +86,7 @@ jobs:
run: mix dialyzer --format github

Documentation:
if: ${{ !startsWith(github.head_ref, 'release-please--branches') }}
runs-on: ubuntu-latest

steps:
Expand All @@ -100,6 +105,7 @@ jobs:
run: mix docs

Format:
if: ${{ !startsWith(github.head_ref, 'release-please--branches') }}
runs-on: ubuntu-latest

steps:
Expand All @@ -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
Expand All @@ -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 }}

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/common-config-elixir.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- main
- code-freeze/**
workflow_dispatch:

concurrency:
Expand Down

0 comments on commit d7cffde

Please sign in to comment.