initializing directory structure and github actions
This commit is contained in:
parent
150d89e738
commit
6d1b8325e5
16
.github/workflows/unitTests.yml
vendored
Normal file
16
.github/workflows/unitTests.yml
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
name: Unit Tests
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
Run-All:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Repo Code Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Golang Setup
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: 1.18
|
||||||
|
|
||||||
|
- run: echo "Running {{ github.repository }} deployment unit tests."
|
||||||
|
- run: go test ./...
|
||||||
7
src/corso.go
Normal file
7
src/corso.go
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Println("Hello, Corso")
|
||||||
|
}
|
||||||
7
src/corso_test.go
Normal file
7
src/corso_test.go
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "testing"
|
||||||
|
|
||||||
|
func TestDemo(t *testing.T) {
|
||||||
|
t.Log("Hello, test.")
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user