File tree 4 files changed +37
-8
lines changed
4 files changed +37
-8
lines changed Original file line number Diff line number Diff line change 5
5
strategy :
6
6
matrix :
7
7
go :
8
- - 1.16
9
- - 1.17
8
+ - 1.18
9
+ - 1.19
10
10
name : Build
11
11
runs-on : ubuntu-latest
12
12
13
13
steps :
14
14
- name : Set up Go
15
- uses : actions/setup-go@v1
15
+ uses : actions/setup-go@v3
16
16
with :
17
17
go-version : ${{ matrix.go }}
18
18
id : go
19
19
20
20
- name : Check out code into the Go module directory
21
- uses : actions/checkout@v2
21
+ uses : actions/checkout@v3
22
22
23
23
- name : Build & Test
24
24
run : |
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- name : Checkout
15
- uses : actions/checkout@v2
15
+ uses : actions/checkout@v3
16
16
- name : Set up Go
17
- uses : actions/setup-go@v2
17
+ uses : actions/setup-go@v3
18
18
with :
19
- go-version : 1.17
19
+ go-version : 1.19
20
20
- name : Run GoReleaser
21
- uses : goreleaser/goreleaser-action@v1
21
+ uses : goreleaser/goreleaser-action@v4
22
22
with :
23
23
version : latest
24
24
args : release
Original file line number Diff line number Diff line change
1
+ package validator_test
2
+
3
+ import (
4
+ "io/ioutil"
5
+ "os"
6
+ "strings"
7
+ "testing"
8
+
9
+ "github.com/fujiwara/go-amzn-oidc/validator"
10
+ )
11
+
12
+ func TestRealJWT (t * testing.T ) {
13
+ testJWT := "testdata/test.jwt"
14
+ if _ , err := os .Stat (testJWT ); err != nil {
15
+ t .Skipf ("%s is not found" , testJWT )
16
+ }
17
+ f , _ := os .Open (testJWT )
18
+ b , _ := ioutil .ReadAll (f )
19
+ f .Close ()
20
+
21
+ token := strings .TrimSpace (string (b ))
22
+ t .Log (token )
23
+ c , err := validator .Validate (token )
24
+ if err != nil {
25
+ t .Error (err )
26
+ }
27
+ t .Log (c )
28
+ }
Original file line number Diff line number Diff line change
1
+ * .jwt
You can’t perform that action at this time.
0 commit comments