Skip to content

Commit c8861ba

Browse files
authored
Merge pull request #2016 from onflow/cf/merge-m-scaffolds
Update branch with master
2 parents 2811395 + a400661 commit c8861ba

49 files changed

Lines changed: 2029 additions & 3381 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/add-issues-to-devx-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ jobs:
1212
steps:
1313
- uses: actions/add-to-project@v1.0.2
1414
with:
15-
project-url: https://github.com/orgs/onflow/projects/13
15+
project-url: https://github.com/orgs/onflow/projects/85
1616
github-token: ${{ secrets.GH_ACTION_FOR_PROJECTS }}

.github/workflows/build-release.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
env:
8+
GO_VERSION: "1.24"
9+
710
jobs:
811
release:
912
name: Release Go Binary
@@ -12,12 +15,12 @@ jobs:
1215
# See https://github.com/onflow/flow-cli/pull/1431 for more information
1316
- name: Delete unnecessary cache
1417
run: rm -rf ${RUNNER_TOOL_CACHE}
15-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v5
1619
- name: Codebase security check
1720
continue-on-error: true
1821
uses: snyk/actions/golang@master
1922
with:
20-
go-version: '1.22'
23+
go-version: ${{ env.GO_VERSION }}
2124
env:
2225
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
2326
- name: Setup Release Environment

.github/workflows/ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,27 @@ defaults:
1919
run:
2020
shell: bash
2121

22+
env:
23+
GO_VERSION: "1.24"
24+
2225
jobs:
2326
test:
2427
strategy:
2528
matrix:
2629
os: [ubuntu-latest, windows-latest]
2730
runs-on: ${{ matrix.os }}
2831
steps:
29-
- uses: actions/checkout@v3
30-
with:
31-
fetch-depth: 0
32+
- uses: actions/checkout@v5
3233
- uses: actions/setup-go@v5
3334
with:
34-
go-version: "1.22"
35+
go-version: ${{ env.GO_VERSION }}
3536
- name: Run tests
3637
run: |
3738
make ci
3839
make check-tidy
3940
make check-headers
4041
- name: Upload coverage report
41-
uses: codecov/codecov-action@v4
42+
uses: codecov/codecov-action@v5
4243
with:
4344
file: ./coverage.txt
4445
flags: unittests
@@ -48,15 +49,15 @@ jobs:
4849
lint:
4950
runs-on: ubuntu-latest
5051
steps:
51-
- uses: actions/checkout@v3
52+
- uses: actions/checkout@v5
5253
- uses: actions/setup-go@v5
5354
with:
54-
go-version: "1.22"
55+
go-version: ${{ env.GO_VERSION }}
5556
- name: generate
5657
run: make generate
57-
- uses: golangci/golangci-lint-action@v6.1.1
58+
- uses: golangci/golangci-lint-action@v6.5.0
5859
with:
59-
version: v1.59.0
60+
version: v1.64.8
6061
only-new-issues: true
6162
skip-pkg-cache: true
6263
args: --timeout=3m

.github/workflows/publish-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ jobs:
1212
- uses: mislav/bump-homebrew-formula-action@v3
1313
with:
1414
formula-name: flow-cli
15+
base-branch: main
1516
env:
1617
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}

.github/workflows/sync-labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v5
1515
- uses: micnncim/action-label-syncer@v1
1616
env:
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ builds:
3232
flags:
3333
- -mod=readonly
3434
ldflags:
35-
- -X github.com/onflow/flow-cli/build.semver={{ .Env.VERSION }} -X github.com/onflow/flow-cli/internal/command.mixpanelToken={{ .Env.MIXPANEL_PROJECT_TOKEN }} -X github.com/onflow/flow-cli/internal/accounts.accountToken={{ .Env.LILICO_TOKEN }}
35+
- -X github.com/onflow/flow-cli/build.semver={{ .Env.VERSION }} -X github.com/onflow/flow-cli/internal/command.MixpanelToken={{ .Env.MIXPANEL_PROJECT_TOKEN }} -X github.com/onflow/flow-cli/internal/accounts.accountToken={{ .Env.LILICO_TOKEN }}
3636

3737
archives:
3838
- id: golang-cross
@@ -55,4 +55,4 @@ release:
5555
owner: onflow
5656
name: flow-cli
5757
prerelease: auto
58-
draft: false
58+
draft: false

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @Kay-Zee @janezpodhostnik @sideninja @chasefleming @nvdtf @bluesign @bjartek @jribbink @ianthpun
1+
* @Kay-Zee @janezpodhostnik @chasefleming @nvdtf @bluesign @bjartek @jribbink @mfbz

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ equal (=) sign (ex: `--username test` or `--username=test`)
205205
flow accounts get --filter "address"
206206
```
207207

208-
Use common naming for default falgs such as:
208+
Use common naming for default flags such as:
209209

210210
`--log`: Logging level.
211211

@@ -329,7 +329,7 @@ Main help screen must contain a list of all commands with their own description,
329329
it must also include examples for commands. Help screen should include link to the documentation website.
330330

331331
Commands should have a description that is not too long (less than 100 characters).
332-
Help should be outputed if command is ran without any arguments. Help outline should be:
332+
Help should be outputted if command is ran without any arguments. Help outline should be:
333333

334334
```Description:
335335
<description>

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ $(BINARY):
5959
GO111MODULE=on go build \
6060
-trimpath \
6161
-ldflags \
62-
"-X github.com/onflow/flow-cli/build.semver=$(VERSION) -X github.com/onflow/flow-cli/internal/accounts.accountToken=${ACCOUNT_TOKEN}"\
62+
"-X github.com/onflow/flow-cli/build.semver=$(VERSION) -X github.com/onflow/flow-cli/internal/accounts.accountToken=${ACCOUNT_TOKEN} -X github.com/onflow/flow-cli/internal/command.MixpanelToken=${MIXPANEL_PROJECT_TOKEN}" \
6363
-o $(BINARY) ./cmd/flow
6464

6565
.PHONY: versioned-binaries

0 commit comments

Comments
 (0)