-
Notifications
You must be signed in to change notification settings - Fork 9
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 beam-community/common-config
- Loading branch information
1 parent
aeea9fa
commit b66d691
Showing
8 changed files
with
268 additions
and
56 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,5 +1,8 @@ | ||
# Used by "mix format" | ||
# This file is synced with beam-community/common-config. 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,39 @@ | ||
{ | ||
"$comment": "This file is synced with beam-community/common-config. Any changes will be overwritten.", | ||
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", | ||
"changelog-sections": [ | ||
{ | ||
"type": "feat", | ||
"section": "Features", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "fix", | ||
"section": "Bug Fixes", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "chore", | ||
"section": "Miscellaneous", | ||
"hidden": false | ||
} | ||
], | ||
"draft": false, | ||
"draft-pull-request": false, | ||
"packages": { | ||
".": { | ||
"extra-files": [ | ||
"README.md" | ||
], | ||
"release-type": "elixir" | ||
} | ||
}, | ||
"plugins": [ | ||
{ | ||
"type": "sentence-case" | ||
} | ||
], | ||
"prerelease": false, | ||
"pull-request-header": "An automated release has been created for you.", | ||
"separate-pull-requests": true | ||
} |
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,106 @@ | ||
# This file is synced with beam-community/common-config. Any changes will be overwritten. | ||
|
||
name: CI | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
push: | ||
branches: | ||
- main | ||
workflow_call: | ||
secrets: | ||
GH_PERSONAL_ACCESS_TOKEN: | ||
required: true | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: CI ${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
Credo: | ||
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 }} | ||
|
||
- name: Credo | ||
run: mix credo --strict | ||
|
||
Dependencies: | ||
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 }} | ||
|
||
- name: Unused | ||
run: mix deps.unlock --check-unused | ||
|
||
Dialyzer: | ||
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 }} | ||
|
||
- name: Dialyzer | ||
run: mix dialyzer --format github | ||
|
||
Format: | ||
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 }} | ||
|
||
- name: Format | ||
run: mix format --check-formatted | ||
|
||
Test: | ||
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 }} | ||
|
||
- name: Compile | ||
run: mix compile --warnings-as-errors | ||
|
||
- name: Test | ||
run: mix test | ||
|
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,35 @@ | ||
# This file is synced with beam-community/common-config. 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' }} | ||
name: Check Title | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check | ||
uses: stordco/actions-pr-title@v1.0.0 | ||
with: | ||
regex: '^(feat!|fix!|fix|feat|chore)(\(\w+\))?:\s(\[#\d{1,5}\])?.*$' | ||
hint: | | ||
Your PR title does not match the Conventional Commits convention. Please rename your PR to match one of the following formats: | ||
fix: [#123] some title of the PR | ||
fix(scope): [#123] some title of the PR | ||
feat: [#1234] some title of the PR | ||
chore: update some action | ||
Note: Adding ! (i.e. `feat!:`) represents a breaking change and will result in a SemVer major release. | ||
See https://www.conventionalcommits.org/en/v1.0.0/ for more information. |
Oops, something went wrong.