-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/bump-ibl
- Loading branch information
Showing
77 changed files
with
1,348 additions
and
332 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = tab | ||
indent_size = 4 | ||
insert_final_newline = true | ||
tab_width = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = false | ||
|
||
[*.{nix,yml,yaml}] | ||
indent_style = space | ||
indent_size = 2 | ||
tab_width = 2 | ||
|
||
[*.{diff,patch}] | ||
end_of_line = unset | ||
insert_final_newline = unset | ||
trim_trailing_whitespace = unset | ||
|
||
[*.lock] | ||
indent_size = unset |
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,11 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 15 | ||
reviewers: | ||
- NotAShelf | ||
assignees: | ||
- NotAShelf |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: "Publish Docker Image" | ||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: ["v*"] | ||
|
||
jobs: | ||
build-docker-image: | ||
name: "Build Docker Image" | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@main | ||
- name: Magic Nix Cache | ||
uses: DeterminateSystems/magic-nix-cache-action@main | ||
|
||
- name: Build Docker Image | ||
run: nix build .#docker-nix --print-build-logs | ||
|
||
- name: Load & Tag Built Docker Image | ||
run: | | ||
docker load -i result && | ||
docker tag neovim-flake:latest notashelf/neovim-flake:latest | ||
- name: Log into DockerHub | ||
uses: docker/login-action@master | ||
with: | ||
username: notashelf | ||
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | ||
|
||
- name: Push to DockerHub | ||
run: docker push notashelf/neovim-flake:latest | ||
|
||
- name: Log into ghcr | ||
uses: docker/login-action@master | ||
with: | ||
registry: "ghcr.io" | ||
username: "${{ github.actor }}" | ||
password: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Publish Docker Image (Github Packages) | ||
run: docker push notashelf/neovim-flake:latest |
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,47 @@ | ||
name: "Check validity of .editorconfig" | ||
|
||
permissions: read-all | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
check-editorconfig: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.pull_request.title, '[skip ci]')" | ||
steps: | ||
- name: Get list of changed files from PR | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh api \ | ||
repos/notashelf/neovim-flake/pulls/${{github.event.number}}/files --paginate \ | ||
| jq '.[] | select(.status != "removed") | .filename' \ | ||
> "$HOME/changed_files" | ||
- name: Print list of changed files | ||
run: | | ||
cat "$HOME/changed_files" | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: refs/pull/${{ github.event.pull_request.number }}/merge | ||
|
||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@main | ||
- uses: DeterminateSystems/magic-nix-cache-action@main | ||
|
||
- name: Checking EditorConfig | ||
shell: bash | ||
run: | | ||
cat "$HOME/changed_files" | nix-shell -p editorconfig-checker.out --run 'xargs -r editorconfig-checker -disable-indentation -exclude flake.lock --verbose' | ||
echo -n "Check status: $?" | ||
- name: Fail Gracefully | ||
if: ${{ failure() }} | ||
shell: bash | ||
run: | | ||
echo "::error:: Current formatting does not fit convention provided by .editorconfig located in the project root." | ||
echo "Please make sure your editor properly integrates editorconfig. See https://editorconfig.org/#download for more." | ||
exit 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
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 |
---|---|---|
|
@@ -10,5 +10,3 @@ result/ | |
# Ignore log files generated by my debuggers | ||
*.log | ||
*.log.* | ||
|
||
# |
Oops, something went wrong.