-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Extended GitHub Actions testing range, 1.8 to 1.15. - Added DCO checking (we will require sign-offs moving forward). - Added Dependabot configuration and automerge. - Updated dependencies to the latest versions and verified dialyzer cleanliness. - Undid the formatting when I enabled `force_do_end_blocks: true` in `.formatter.exs`. Signed-off-by: Austin Ziegler <austin@zieglers.ca>
- Loading branch information
1 parent
fad8d94
commit 99728b9
Showing
16 changed files
with
269 additions
and
187 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Used by "mix format" | ||
[ | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], | ||
force_do_end_blocks: true | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] | ||
] |
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,42 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: /ts | ||
schedule: | ||
interval: monthly | ||
|
||
groups: | ||
ts-dev: | ||
patterns: | ||
- concurrently | ||
- '@tsconfig/*' | ||
- '@types/*' | ||
- '@typescript-eslint/*' | ||
- eslint | ||
- 'eslint-plugin-*' | ||
- prettier | ||
- 'ts-*' | ||
- tsup | ||
- typedoc | ||
- typescript | ||
- vitest | ||
|
||
- package-ecosystem: mix | ||
directory: /elixir | ||
schedule: | ||
interval: monthly | ||
|
||
- package-ecosystem: bundler | ||
directory: /ruby | ||
schedule: | ||
interval: monthly | ||
|
||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
|
||
groups: | ||
actions: | ||
patterns: | ||
- '*' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Check DCO | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
check-dco: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: KineticCafe/actions-dco@v1.1 |
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,17 @@ | ||
name: Dependabot auto-merge | ||
|
||
on: | ||
pull_request: | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
dependabot-automerge: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: KineticCafe/actions/dependabot-automerge@v1.0 | ||
with: | ||
update-type: minor |
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,98 @@ | ||
name: Elixir CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
merge_group: | ||
types: | ||
- checks_requested | ||
workflow_dispatch: | ||
|
||
jobs: | ||
elixir-ci: | ||
name: Elixir ${{ matrix.elixir }} (OTP ${{ matrix.otp }}) | ||
|
||
env: | ||
LANG: en_US.UTF-8 | ||
LC_CTYPE: en_US.UTF-8 | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
include: | ||
- elixir: '1.8' | ||
otp: '20' | ||
- elixir: '1.9' | ||
otp: '20' | ||
- elixir: '1.10' | ||
otp: '21' | ||
os: ubuntu-20.04 | ||
- elixir: '1.11' | ||
otp: '21' | ||
os: ubuntu-20.04 | ||
- elixir: '1.11' | ||
otp: '23' | ||
os: ubuntu-20.04 | ||
- elixir: '1.12' | ||
otp: '24' | ||
os: ubuntu-22.04 | ||
- elixir: '1.13' | ||
otp: '24' | ||
os: ubuntu-22.04 | ||
- elixir: '1.14' | ||
otp: '25' | ||
os: ubuntu-22.04 | ||
- elixir: '1.15' | ||
otp: '26' | ||
os: ubuntu-22.04 | ||
check_formatted: true | ||
warnings_as_errors: true | ||
dialyzer: true | ||
credo: true | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: erlef/setup-elixir@v1 | ||
id: install | ||
with: | ||
otp-version: ${{ matrix.otp }} | ||
elixir-version: ${{ matrix.elixir }} | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
key: builds@elixir-${{ steps.install.outputs.elixir-version }}-otp-${{ steps.install.outputs.otp-version }}-mix-${{ hashFiles('mix.lock') }} | ||
path: | | ||
deps | ||
_build | ||
- run: mix 'do' deps.get, deps.compile | ||
|
||
- run: mix format --check-formatted | ||
if: matrix.check_formatted | ||
|
||
- run: mix compile --warnings-as-errors | ||
if: matrix.warnings_as_errors | ||
|
||
- run: mix compile | ||
if: ${{ !matrix.warnings_as_errors }} | ||
|
||
- run: mix test | ||
|
||
- run: mix credo --strict | ||
if: matrix.credo | ||
|
||
- uses: actions/cache@v3 | ||
if: matrix.dialyzer | ||
with: | ||
key: plts@elixir-${{ steps.install.outputs.elixir-version }}-otp-${{ steps.install.outputs.otp-version }}-mix-${{ hashFiles('mix.lock') }} | ||
path: | | ||
priv/plts | ||
restore-keys: | | ||
plts@elixir-${{ steps.install.outputs.elixir-version }}-otp-${{ steps.install.outputs.otp-version }}-mix- | ||
- run: mix dialyzer | ||
if: matrix.dialyzer |
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
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
Oops, something went wrong.