Skip to content

Commit 21d30be

Browse files
authored
Setup Github Actions (#59)
* Setup Github Actions * Formatted the entire repo and fixed linting issues. (#47) * Fix package.json to support npm run build and npm run build-all. Fixed README accordingly. Add pkg folder to .gitignore. Signed-off-by: Ashish Mishra <[email protected]> * Ran gofmt and golangci-lint through the entire project for changes. Signed-off-by: Ashish Mishra <[email protected]> * Add correct documentation for createJob (#61) The selector field was earlier mentioned as comma-separated instead of json-selector format. * Format cmd/unstake.go Signed-off-by: Ashish Mishra <[email protected]> * Ignore pkg/bindings from golangci-lint. Signed-off-by: Ashish Mishra <[email protected]> * Update go.yml * Remove testing. Testing should be added to another workflow as it requires a lot of dependencies to be installed.
1 parent bbd38ac commit 21d30be

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/go.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
tags: [ v* ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
12+
build:
13+
strategy:
14+
matrix:
15+
go-version: [1.15.x, 1.16.x]
16+
17+
name: Build
18+
runs-on: 'ubuntu-latest'
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- name: Check code formatting using gofmt
24+
uses: Jerome1337/[email protected]
25+
26+
- name: Check code linting using golangci-lint
27+
uses: golangci/[email protected]

cmd/unstake.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var unstakeCmd = &cobra.Command{
7070

7171
if autoWithdraw {
7272
log.Info("Starting withdrawal now...")
73-
s := spinner.New(spinner.CharSets[9], 100 * time.Millisecond)
73+
s := spinner.New(spinner.CharSets[9], 100*time.Millisecond)
7474
s.Start()
7575
time.Sleep(time.Duration(core.EpochLength) * time.Second)
7676
s.Stop()

0 commit comments

Comments
 (0)