1
Fork 0
mirror of https://github.com/RGBCube/ManageTTD synced 2025-07-28 01:17:46 +00:00

Feat: Basic V project

This commit is contained in:
RGBCube 2023-03-17 22:24:33 +03:00
parent 478ab7eb52
commit 25e1a4fedb
7 changed files with 77 additions and 0 deletions

9
.editorconfig Normal file
View file

@ -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

7
.gitattributes vendored Normal file
View file

@ -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

20
.github/workflows/test.yml vendored Normal file
View file

@ -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 ./

20
.github/workflows/verify-formatting.yml vendored Normal file
View file

@ -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 ./

9
.gitignore vendored
View file

@ -1,4 +1,13 @@
*
!.github/
!.github/workflows
!src/
!.editorconfig
!.gitattributes
!.gitignore
!v.mod
!*.md
!*.yml
!*.v

5
src/main.v Normal file
View file

@ -0,0 +1,5 @@
module main
fn main() {
println('Hello World!')
}

7
v.mod Normal file
View file

@ -0,0 +1,7 @@
Module {
name: 'ConfigTTD'
description: ''
version: ''
license: ''
dependencies: []
}