Skip to content

Commit e2c765f

Browse files
authored
Update github workflows (#2)
* Update minimal go version
1 parent a62df38 commit e2c765f

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

.github/workflows/go.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
go: [ '1.14', '1.15', '1.16', '1.17' ]
14+
go: [ '1.21', '1.22', '1.23' ]
1515
name: Test on Go ${{ matrix.go }}
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818
- name: Set up Go ${{ matrix.go }}
19-
uses: actions/setup-go@v2
19+
uses: actions/setup-go@v5
2020
with:
2121
go-version: ${{ matrix.go }}
2222
- run: go test ./...
2323

2424
coverage:
25-
name: Test on Go 1.18
25+
name: Test on Go 1.23
2626
runs-on: ubuntu-latest
2727
steps:
2828

29-
- name: Set up Go 1.18
30-
uses: actions/setup-go@v2
29+
- name: Set up Go 1.23
30+
uses: actions/setup-go@v5
3131
with:
32-
go-version: ^1.18
32+
go-version: ^1.23
3333

3434
- name: Check out code into the Go module directory
35-
uses: actions/checkout@v2
35+
uses: actions/checkout@v4
3636

3737
- name: Install dependencies
3838
run: |
@@ -48,10 +48,10 @@ jobs:
4848
run: go test -v -covermode=count -coverprofile=coverage.out ./...
4949

5050
- name: Convert coverage
51-
uses: jandelgado/gcov2lcov-action@v1.0.5
51+
uses: jandelgado/gcov2lcov-action@v1
5252

5353
- name: Coveralls
54-
uses: coverallsapp/github-action@v1.1.2
54+
uses: coverallsapp/github-action@v2
5555
with:
5656
github-token: ${{ secrets.github_token }}
5757
path-to-lcov: coverage.lcov

.github/workflows/reviewdog.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ on:
66

77
jobs:
88
lint:
9-
name: Test on Go 1.18
9+
name: Test on Go 1.23
1010
runs-on: ubuntu-latest
1111
steps:
1212

13-
- name: Set up Go 1.18
14-
uses: actions/setup-go@v2
13+
- name: Set up Go 1.23
14+
uses: actions/setup-go@v5
1515
with:
16-
go-version: ^1.18
16+
go-version: ^1.23
1717

1818
- name: Check out code into the Go module directory
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4
2020

2121
- name: Install dependencies
2222
run: |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/lafriks/go-shamir
22

3-
go 1.14
3+
go 1.20

shamir.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
// random polynomial equations of degree K-1 which have an X-intercept equal to
99
// the secret. Given K=3, the following equations might be generated:
1010
//
11-
// f1(x) = 78x^2 + 19x + 42
12-
// f2(x) = 128x^2 + 171x + 42
13-
// f3(x) = 121x^2 + 3x + 42
14-
// f4(x) = 91x^2 + 95x + 42
15-
// etc.
11+
// f1(x) = 78x^2 + 19x + 42
12+
// f2(x) = 128x^2 + 171x + 42
13+
// f3(x) = 121x^2 + 3x + 42
14+
// f4(x) = 91x^2 + 95x + 42
15+
// etc.
1616
//
1717
// These polynomials are then evaluated for values of X > 0:
1818
//
19-
// f1(1) = 139
20-
// f2(2) = 896
21-
// f3(3) = 1140
22-
// f4(4) = 1783
23-
// etc.
19+
// f1(1) = 139
20+
// f2(2) = 896
21+
// f3(3) = 1140
22+
// f4(4) = 1783
23+
// etc.
2424
//
2525
// These (x, y) pairs are the shares given to the parties. In order to combine
2626
// shares to recover the secret, these (x, y) pairs are used as the input points

0 commit comments

Comments
 (0)