Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: sync files with stordco/common-config-elixir (#1)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
3e40b70
commit 13cd484
Showing
12 changed files
with
318 additions
and
177 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# This file is synced with stordco/common-config-elixir. Any changes will be overwritten. | ||
|
||
[ | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], | ||
line_length: 120 | ||
import_deps: [], | ||
inputs: ["*.{heex,ex,exs}", "{config,lib,priv,test}/**/*.{heex,ex,exs}"], | ||
line_length: 120, | ||
plugins: [] | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
# This file is synced with stordco/common-config-elixir. Any changes will be overwritten. | ||
|
||
name: CI | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
push: | ||
branches: | ||
- main | ||
- code-freeze/** | ||
workflow_call: | ||
secrets: | ||
CI_SERVICE_KEY: | ||
required: true | ||
GH_PERSONAL_ACCESS_TOKEN: | ||
required: true | ||
HEX_API_KEY: | ||
required: true | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
Credo: | ||
if: ${{ !startsWith(github.head_ref, 'release-please--branches') }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Elixir | ||
uses: stordco/actions-elixir/setup@v1 | ||
with: | ||
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | ||
hex-token: ${{ secrets.HEX_API_KEY }} | ||
oban-fingerprint: ${{ secrets.OBAN_KEY_FINGERPRINT }} | ||
oban-token: ${{ secrets.OBAN_LICENSE_KEY }} | ||
|
||
- name: Credo | ||
run: mix credo --strict | ||
|
||
Dependencies: | ||
if: ${{ !startsWith(github.head_ref, 'release-please--branches') }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Elixir | ||
uses: stordco/actions-elixir/setup@v1 | ||
with: | ||
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | ||
hex-token: ${{ secrets.HEX_API_KEY }} | ||
oban-fingerprint: ${{ secrets.OBAN_KEY_FINGERPRINT }} | ||
oban-token: ${{ secrets.OBAN_LICENSE_KEY }} | ||
|
||
- name: Unused | ||
run: mix deps.unlock --check-unused | ||
|
||
Dialyzer: | ||
if: ${{ !startsWith(github.head_ref, 'release-please--branches') }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Elixir | ||
uses: stordco/actions-elixir/setup@v1 | ||
with: | ||
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | ||
hex-token: ${{ secrets.HEX_API_KEY }} | ||
oban-fingerprint: ${{ secrets.OBAN_KEY_FINGERPRINT }} | ||
oban-token: ${{ secrets.OBAN_LICENSE_KEY }} | ||
|
||
- name: Dialyzer | ||
run: mix dialyzer --format github | ||
|
||
Documentation: | ||
if: ${{ !startsWith(github.head_ref, 'release-please--branches') }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Elixir | ||
uses: stordco/actions-elixir/setup@v1 | ||
with: | ||
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | ||
hex-token: ${{ secrets.HEX_API_KEY }} | ||
oban-fingerprint: ${{ secrets.OBAN_KEY_FINGERPRINT }} | ||
oban-token: ${{ secrets.OBAN_LICENSE_KEY }} | ||
|
||
- name: Docs | ||
run: mix docs | ||
|
||
Format: | ||
if: ${{ !startsWith(github.head_ref, 'release-please--branches') }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Elixir | ||
uses: stordco/actions-elixir/setup@v1 | ||
with: | ||
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | ||
hex-token: ${{ secrets.HEX_API_KEY }} | ||
oban-fingerprint: ${{ secrets.OBAN_KEY_FINGERPRINT }} | ||
oban-token: ${{ secrets.OBAN_LICENSE_KEY }} | ||
|
||
- name: Format | ||
run: mix format --check-formatted | ||
|
||
Test: | ||
if: ${{ !startsWith(github.head_ref, 'release-please--branches') }} | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
MIX_ENV: test | ||
|
||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Elixir | ||
uses: stordco/actions-elixir/setup@v1 | ||
with: | ||
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | ||
hex-token: ${{ secrets.HEX_API_KEY }} | ||
oban-fingerprint: ${{ secrets.OBAN_KEY_FINGERPRINT }} | ||
oban-token: ${{ secrets.OBAN_LICENSE_KEY }} | ||
|
||
- name: Compile | ||
run: mix compile --warnings-as-errors | ||
|
||
- name: Test | ||
run: mix coveralls.github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This file is synced with stordco/common-config-elixir. Any changes will be overwritten. | ||
|
||
name: PR | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
types: | ||
- edited | ||
- opened | ||
- reopened | ||
- synchronize | ||
|
||
jobs: | ||
Title: | ||
if: ${{ github.event_name == 'pull_request' }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check | ||
uses: stordco/actions-pr-title@v1.0.0 | ||
with: | ||
regex: '^(feat!|fix!|fix|feat|chore|(fix|feat|chore)\(\w.*\)):\s(\[\w{1,8}-\d{1,8}\]|.*).*' | ||
hint: | | ||
Your PR title does not match the Stord common convention. Please rename your PR to match one of the following formats: | ||
chore: a small insignificant change | ||
fix: [JIRA-1234] fix an existing feature | ||
feat: [JIRA-1234] a new feature to release | ||
feat!: a breaking change | ||
Note: Adding ! (i.e. `feat!:`) represents a breaking change and will result in a SemVer major release. | ||
Oops, something went wrong.