diff --git a/.editorconfig b/.editorconfig index c421ed7..a0cada3 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,3 +12,9 @@ charset = utf-8 [*.sh] indent_size = 2 + +[*.{yaml,yml}] +indent_size = 2 + +[Makefile] +indent_style = tab diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..0a7f5f4 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,17 @@ +--- +name: 'Run Tests' + +on: + pull_request: + push: + branches: [main] + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v3 + + - name: 'Execute tests' + run: './run_tests' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 32694a7..445d66b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,5 +20,4 @@ repos: additional_dependencies: - mdformat-gfm - mdformat-toc - # EOF diff --git a/Makefile b/Makefile index c36e206..0e892a4 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +export LC_ALL=C FILE_NAME=lscolors XDG_DATA_HOME ?= $(HOME)/.local/share XDG_DATA_HOME := "$(XDG_DATA_HOME)" diff --git a/tests/works_without_env b/tests/works_without_env new file mode 100755 index 0000000..980d910 --- /dev/null +++ b/tests/works_without_env @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +# + +unset -v XDG_DATA_HOME +make install