diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..517d63e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.v] +indent_style = tab +indent_size = 4 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f4011a7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +* text=auto eol=lf +*.bat eol=crlf + +**/*.v linguist-language=V +**/*.vv linguist-language=V +**/*.vsh linguist-language=V +**/v.mod linguist-language=V diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..89d8e22 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: Test + +on: + - pull_request + - push + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Set Up V + uses: vlang/setup-v@v1.1 + with: + check-latest: true + + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Test + run: v test ./ diff --git a/.github/workflows/verify-formatting.yml b/.github/workflows/verify-formatting.yml new file mode 100644 index 0000000..feb2fd0 --- /dev/null +++ b/.github/workflows/verify-formatting.yml @@ -0,0 +1,20 @@ +name: Verify Formatting + +on: + - pull_request + - push + +jobs: + verify-formatting: + runs-on: ubuntu-latest + steps: + - name: Set Up V + uses: vlang/setup-v@v1.1 + with: + check-latest: true + + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Verify That The Code Is Formatted + run: v fmt -verify ./ diff --git a/.gitignore b/.gitignore index a99a3da..49c215b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,13 @@ * +!.github/ +!.github/workflows +!src/ + +!.editorconfig +!.gitattributes !.gitignore +!v.mod !*.md +!*.yml +!*.v diff --git a/src/main.v b/src/main.v new file mode 100644 index 0000000..edf2574 --- /dev/null +++ b/src/main.v @@ -0,0 +1,5 @@ +module main + +fn main() { + println('Hello World!') +} diff --git a/v.mod b/v.mod new file mode 100644 index 0000000..f3cccbf --- /dev/null +++ b/v.mod @@ -0,0 +1,7 @@ +Module { + name: 'ConfigTTD' + description: '' + version: '' + license: '' + dependencies: [] +}