mirror of
https://github.com/RGBCube/ManageTTD
synced 2025-07-28 09:27:45 +00:00
Feat: Basic V project
This commit is contained in:
parent
478ab7eb52
commit
25e1a4fedb
7 changed files with 77 additions and 0 deletions
9
.editorconfig
Normal file
9
.editorconfig
Normal 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
7
.gitattributes
vendored
Normal 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
20
.github/workflows/test.yml
vendored
Normal 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
20
.github/workflows/verify-formatting.yml
vendored
Normal 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
9
.gitignore
vendored
|
@ -1,4 +1,13 @@
|
||||||
*
|
*
|
||||||
|
|
||||||
|
!.github/
|
||||||
|
!.github/workflows
|
||||||
|
!src/
|
||||||
|
|
||||||
|
!.editorconfig
|
||||||
|
!.gitattributes
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
!v.mod
|
||||||
!*.md
|
!*.md
|
||||||
|
!*.yml
|
||||||
|
!*.v
|
||||||
|
|
5
src/main.v
Normal file
5
src/main.v
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
module main
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
println('Hello World!')
|
||||||
|
}
|
7
v.mod
Normal file
7
v.mod
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
Module {
|
||||||
|
name: 'ConfigTTD'
|
||||||
|
description: ''
|
||||||
|
version: ''
|
||||||
|
license: ''
|
||||||
|
dependencies: []
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue