Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit bbbf23b

Browse files
authored
chore: Bump go version to 1.20 (#240)
* chore: Bump go version to 1.20 * chore: Bump gotools to v0.2.1 * ci: Update linter run script * ci: Increase linter timeout
1 parent 75b4760 commit bbbf23b

10 files changed

Lines changed: 50 additions & 49 deletions

File tree

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# These are supported funding model platforms
22

3-
github: [obalunenko]
3+
github: [ obalunenko ]

.github/workflows/codeql-analysis.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,22 @@ jobs:
3737
# Learn more about CodeQL language support at https://git.io/codeql-language-support
3838

3939
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v3
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
4242

43-
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
46-
with:
47-
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5252

53-
- name: Build
54-
run: |
55-
make build
53+
- name: Build
54+
run: |
55+
make build
5656
57-
- name: Perform CodeQL Analysis
58-
uses: github/codeql-action/analyze@v2
57+
- name: Perform CodeQL Analysis
58+
uses: github/codeql-action/analyze@v2

.github/workflows/go.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- "master"
77
pull_request:
8-
types: [opened, synchronize, reopened]
8+
types: [ opened, synchronize, reopened ]
99
branches:
1010
- "*"
1111
paths:
@@ -26,8 +26,8 @@ jobs:
2626
fail-fast: false
2727
max-parallel: 2
2828
matrix:
29-
os: ["ubuntu-22.04"]
30-
go: ["1.19"]
29+
os: [ "ubuntu-22.04" ]
30+
go: [ "1.20" ]
3131
runs-on: ${{ matrix.os }}
3232
name: Build
3333
steps:
@@ -83,8 +83,8 @@ jobs:
8383
fail-fast: false
8484
max-parallel: 2
8585
matrix:
86-
os: ["ubuntu-22.04"]
87-
go: ["1.19"]
86+
os: [ "ubuntu-22.04" ]
87+
go: [ "1.20" ]
8888
runs-on: ${{ matrix.os }}
8989
name: Run Tests
9090
steps:
@@ -130,8 +130,8 @@ jobs:
130130
fail-fast: false
131131
max-parallel: 2
132132
matrix:
133-
os: ["ubuntu-22.04"]
134-
go: ["1.19"]
133+
os: [ "ubuntu-22.04" ]
134+
go: [ "1.20" ]
135135
runs-on: ${{ matrix.os }}
136136
name: Run linters
137137
steps:
@@ -177,13 +177,13 @@ jobs:
177177
shell: bash
178178

179179
reports:
180-
needs: [linting, testing, build]
180+
needs: [ linting, testing, build ]
181181
strategy:
182182
fail-fast: true
183183
max-parallel: 1
184184
matrix:
185-
os: ["ubuntu-22.04"]
186-
go: ["1.19"]
185+
os: [ "ubuntu-22.04" ]
186+
go: [ "1.20" ]
187187
runs-on: ${{ matrix.os }}
188188
name: Quality reports
189189
steps:

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
max-parallel: 2
1515
matrix:
1616
os: [ 'ubuntu-22.04' ]
17-
go: [ '1.19' ]
17+
go: [ "1.20" ]
1818
runs-on: ${{ matrix.os }}
1919
name: Build
2020
steps:
@@ -60,7 +60,7 @@ jobs:
6060
max-parallel: 2
6161
matrix:
6262
os: [ 'ubuntu-22.04' ]
63-
go: [ '1.19' ]
63+
go: [ "1.20" ]
6464
runs-on: ${{ matrix.os }}
6565
name: Regression tests
6666
steps:
@@ -109,7 +109,7 @@ jobs:
109109
max-parallel: 1
110110
matrix:
111111
os: [ 'ubuntu-22.04' ]
112-
go: [ '1.19' ]
112+
go: [ "1.20" ]
113113
runs-on: ${{ matrix.os }}
114114
name: Lint
115115
steps:
@@ -156,13 +156,13 @@ jobs:
156156
shell: bash
157157

158158
release:
159-
needs: [build, regression_test, linting]
159+
needs: [ build, regression_test, linting ]
160160
strategy:
161161
fail-fast: false
162162
max-parallel: 1
163163
matrix:
164164
os: [ 'ubuntu-22.04' ]
165-
go: [ '1.19' ]
165+
go: [ "1.20" ]
166166
runs-on: ${{ matrix.os }}
167167
name: Release
168168
steps:

.goreleaser.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ builds:
4343
ldflags:
4444
- "{{ .Env.GO_BUILD_LDFLAGS }}"
4545
universal_binaries:
46-
-
47-
# ID of the source build
46+
- # ID of the source build
4847
#
4948
# Defaults to the project name.
5049
id: cli

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ APP_NAME?=instadiff-cli
77
SHELL := env APP_NAME=$(APP_NAME) $(SHELL)
88

99

10-
GOTOOLS_IMAGE_TAG?=v0.1.4
10+
GOTOOLS_IMAGE_TAG?=v0.2.1
1111
SHELL := env GOTOOLS_IMAGE_TAG=$(GOTOOLS_IMAGE_TAG) $(SHELL)
1212

1313
COMPOSE_TOOLS_FILE=deployments/docker-compose/go-tools-docker-compose.yml

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ Example of config file:
9090

9191
```json
9292
{
93-
"instagram":{
94-
"whitelist":[
93+
"instagram": {
94+
"whitelist": [
9595
"user1",
9696
"user2",
9797
"user3",
9898
"1234567"
9999
],
100-
"limits":{
101-
"unfollow":100
100+
"limits": {
101+
"unfollow": 100
102102
},
103103
"sleep": 7
104104
},
@@ -113,15 +113,17 @@ Example of config file:
113113
```
114114

115115
* instagram: it is a config for instagram
116-
* whitelist: list of followings that will be not unfollowed even if they are not mutual (usernames and ID's supported both).
116+
* whitelist: list of followings that will be not unfollowed even if they are not mutual (usernames and ID's
117+
supported both).
117118
* limits: limits per one run.
118-
* unfollow: number of users that could be unfollowed in one run (be careful with big number - account could be banned)
119+
* unfollow: number of users that could be unfollowed in one run (be careful with big number - account could be
120+
banned)
119121
* sleep: sleep interval in seconds between each unfollow request to prevent account ban for ddos reason.
120-
* storage: it's a config for database storage.
121-
* local: if true, memory cache will be used and connection to mongo will be not set.
122-
* mongo: is a config for mongo database
123-
- url: url of mongo DB to connect
124-
- db: name of Database
122+
* storage: it's a config for database storage.
123+
* local: if true, memory cache will be used and connection to mongo will be not set.
124+
* mongo: is a config for mongo database
125+
- url: url of mongo DB to connect
126+
- db: name of Database
125127

126128
Create a json file with configuration and pass the path to it via flag `--config_path`
127129

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/obalunenko/instadiff-cli
22

3-
go 1.19
3+
go 1.20
44

55
require (
66
github.com/Davincible/goinsta/v3 v3.2.6

scripts/linting/golangci-pipeline.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ checkInstalled golangci-lint
1616
echo "Linting..."
1717

1818
golangci-lint run --out-format=github-actions --no-config --disable-all -E govet
19-
golangci-lint run --config .golangci.pipe.yml
19+
golangci-lint run --timeout=10m --out-format=github-actions --config .golangci.pipe.yml
2020

2121
echo "${SCRIPT_NAME} done."

scripts/linting/golangci-sonar.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ checkInstalled golangci-lint
1515

1616
echo "Linting..."
1717

18-
golangci-lint run --config .golangci.yml > linters.out
18+
golangci-lint run --timeout=10m --config .golangci.yml > linters.out
1919

2020
echo "${SCRIPT_NAME} done."

0 commit comments

Comments
 (0)