Skip to content

Commit

Permalink
ci: add lint job (#20)
Browse files Browse the repository at this point in the history
Lint YAML files using yamllint with default configuration.
  • Loading branch information
kirillmorozov authored Mar 12, 2024
1 parent 6c8337b commit d1ba6df
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: CI
# yamllint disable-line rule:truthy
on:
- pull_request

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/[email protected]

- name: Install Task
uses: arduino/[email protected]
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Run lint task
run: task lint
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name: PR
# yamllint disable-line rule:truthy
on:
- pull_request

Expand Down
12 changes: 12 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ tasks:
cmds:
- curl -sS https://starship.rs/install.sh | sh

# yamllint disable-line rule:key-duplicates
install-starship:
desc: Install starship
platforms: [darwin]
Expand All @@ -31,6 +32,7 @@ tasks:
status:
- '[ -d ~/.oh-my-zsh ]'
cmds:
# yamllint disable-line rule:line-length
- sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

link-file:
Expand Down Expand Up @@ -133,3 +135,13 @@ tasks:
- task: clean-alacritty
- task: clean-helix
- task: clean-neovim

lint-yaml:
desc: Lint YAML files using yamllint
aliases:
- lint
preconditions:
- sh: yamllint --version
msg: yamllint is not installed
cmds:
- yamllint .
3 changes: 2 additions & 1 deletion alacritty/alacritty.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
font:
normal:
family: Fira Code
size: 12.0

import:
- ~/.config/alacritty/rose-pine.yml
- ~/.config/alacritty/rose-pine.yml
1 change: 1 addition & 0 deletions alacritty/rose-pine-dawn.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
colors:
primary:
background: "0xfaf4ed"
Expand Down
1 change: 1 addition & 0 deletions alacritty/rose-pine-moon.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
colors:
primary:
background: "0x232136"
Expand Down
1 change: 1 addition & 0 deletions alacritty/rose-pine.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
colors:
primary:
background: "0x191724"
Expand Down

0 comments on commit d1ba6df

Please sign in to comment.