Skip to content

Commit

Permalink
Add external dependency and resolve GHA warnings
Browse files Browse the repository at this point in the history
Signed-off-by: John Kjell <john@testifysec.com>
  • Loading branch information
jkjell committed Oct 29, 2023
1 parent c4316de commit a760bf5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/witness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ jobs:
witness:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/setup-go@v4.1.0
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: 1.21.x

- if: ${{ inputs.artifact-download != '' }}
uses: actions/download-artifact@v3.0.0
uses: actions/download-artifact@v3
with:
name: ${{ inputs.artifact-download }}
path: /tmp
Expand All @@ -74,7 +74,7 @@ jobs:
run: ${{ inputs.command }}

- if: ${{ inputs.artifact-upload-path != '' && inputs.artifact-upload-name != ''}}
uses: actions/upload-artifact@v3.0.0
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.artifact-upload-name }}
path: ${{ inputs.artifact-upload-path }}
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/jkjell/swf

go 1.21.1

require github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be h1:J5BL2kskAlV9ckgEsNQXscjIaLiOYiZ75d4e94E6dcQ=
github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be/go.mod h1:mk5IQ+Y0ZeO87b858TlA645sVcEcbiX6YqP98kt+7+w=
7 changes: 4 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package main

import (
"fmt"
"github.com/common-nighthawk/go-figure"
)

func Hello() string {
return "Hello World!"
return "Hello KubeCon!"
}

func main() {
fmt.Println(Hello())
myFigure := figure.NewFigure(Hello(), "usaflag", true)
myFigure.Print()
}
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

func TestHello(t *testing.T) {
got := Hello()
want := "Hello World!"
want := "Hello KubeCon!"

if got != want {
t.Errorf("got %q want %q", got, want)
Expand Down

0 comments on commit a760bf5

Please sign in to comment.