Skip to content

Commit b3b993f

Browse files
committed
test: Add regression test for non-existent env var
1 parent 470d5a5 commit b3b993f

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ charset = utf-8
1313
[*.sh]
1414
indent_size = 2
1515

16+
[*.{yaml,yml}]
17+
indent_size = 2
18+
1619
[Makefile]
1720
indent_style = tab

.github/workflows/tests.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: 'Run Tests'
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
pre-commit:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out code
14+
uses: actions/checkout@v3
15+
16+
- name: 'Execute tests'
17+
run: './run_tests'

.pre-commit-config.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ repos:
2020
additional_dependencies:
2121
- mdformat-gfm
2222
- mdformat-toc
23-
2423
# EOF

tests/works_without_env

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
#
3+
4+
unset -v XDG_DATA_HOME
5+
make install

0 commit comments

Comments
 (0)