Skip to content

Commit

Permalink
Merge pull request TechBowl-japan#1 from TechBowl-japan/feature/railw…
Browse files Browse the repository at this point in the history
…ay-cli-integration

Add Railway CLI integration
  • Loading branch information
SuguruOoki authored Jul 19, 2021
2 parents 1d1db67 + 14bac05 commit 61286e1
Show file tree
Hide file tree
Showing 27 changed files with 310 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@
# local database file
.sqlite3/*
!.sqlite3/.gitkeep

node_modules
.DS_Store
1 change: 1 addition & 0 deletions .techtrain/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auth = { }
23 changes: 23 additions & 0 deletions .techtrain/manifests/railway.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"railwayId": 5,
"stations": {
"1": "station01.json",
"2": "station02.json",
"3": "station03.json",
"4": "station04.json",
"5": "station05.json",
"6": "station06.json",
"7": "station07.json",
"8": "station08.json",
"9": "station09.json",
"11": "station11.json",
"12": "station12.json",
"13": "station13.json",
"14": "station14.json",
"15": "station15.json",
"16": "station16.json",
"17": "station17.json",
"18": "station18.json",
"19": "station19.json"
}
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station01.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 01",
"id": 1,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta1"
}
]
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station02.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 02",
"id": 2,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta2"
}
]
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station03.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 03",
"id": 3,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta3"
}
]
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station04.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 04",
"id": 4,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta4"
}
]
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station05.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 05",
"id": 5,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta5"
}
]
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station06.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 06",
"id": 6,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta6"
}
]
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station07.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 07",
"id": 7,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta7"
}
]
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station08.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 08",
"id": 8,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta8"
}
]
}
15 changes: 15 additions & 0 deletions .techtrain/manifests/station09.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Station 09",
"id": 9,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta9"
},
{
"type": "interview"
}
]
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 10",
"id": 10,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta10"
}
]
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 11",
"id": 11,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta11"
}
]
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station12.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 12",
"id": 12,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta12"
}
]
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station13.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 13",
"id": 13,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta13"
}
]
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station14.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 14",
"id": 14,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta14"
}
]
}
15 changes: 15 additions & 0 deletions .techtrain/manifests/station15.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Station 15",
"id": 15,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta15"
},
{
"type": "interview"
}
]
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station16.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 16",
"id": 16,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta16"
}
]
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station17.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 17",
"id": 17,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta17"
}
]
}
12 changes: 12 additions & 0 deletions .techtrain/manifests/station18.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Station 18",
"id": 18,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta18"
}
]
}
15 changes: 15 additions & 0 deletions .techtrain/manifests/station19.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Station 19",
"id": 19,
"prepare": [],
"tests": [
{
"type": "go-test",
"module": true,
"path": "./_test/sta19"
},
{
"type": "interview"
}
]
}
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ go 1.16

require (
github.com/google/go-cmp v0.5.6 // indirect
github.com/jstemmer/go-junit-report v0.9.1 // indirect
github.com/mattn/go-sqlite3 v1.14.7
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/jstemmer/go-junit-report v0.9.1 h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o=
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
github.com/mattn/go-sqlite3 v1.14.7 h1:fxWBnXkxfM6sRiuH3bqJ4CfzZojMOLVc0UTsTglEghA=
github.com/mattn/go-sqlite3 v1.14.7/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
Expand Down
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "go-stations",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"repository": "https://github.com/TechBowl-japan/go-stations.git",
"author": "Hikaru Terazono (3c1u) <[email protected]>",
"dependencies": {
"@techtrain/cli-railway": "0.1.2"
},
"devDependencies": {
"simple-git-hooks": "^2.5.1"
},
"scripts": {
"login:techtrain": "techtrain-railway login",
"hook:pre-commit": "techtrain-railway hook:pre-commit",
"hook:update": "simple-git-hooks",
"postinstall": "yarn hook:update && yarn login:techtrain"
},
"simple-git-hooks": {
"pre-commit": "yarn hook:pre-commit"
}
}
7 changes: 7 additions & 0 deletions tools.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// +build tools

package tools

import (
_ "github.com/jstemmer/go-junit-report"
)
13 changes: 13 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


"@techtrain/[email protected]":
version "0.1.1"
resolved "https://registry.yarnpkg.com/@techtrain/cli-railway/-/cli-railway-0.1.1.tgz#6a121a1b47cc4c2725bacdbda7aa9dabe2b2c13d"
integrity sha512-x3ZckGFEzP0xlp5BJD/epmYM2Lp5z3R+2tIO+EBo3nfsxVhm5GvGQcqqSjhLv+Va2biFVPhK+uvnYMOoxWR3KA==

simple-git-hooks@^2.5.1:
version "2.5.1"
resolved "https://registry.yarnpkg.com/simple-git-hooks/-/simple-git-hooks-2.5.1.tgz#78ed9cfa552843bc45cd36ad5b7424567119c2f4"
integrity sha512-iI/MEEVObv45slsxz+BT+5NCS2UDgVIqfQKmNjL4/XnEfacpdYAHd71Imc5Nw/FY100A+i1PIXdIdkLHYcC2Bg==

0 comments on commit 61286e1

Please sign in to comment.