Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automation things: codecov, linting, github. #2

Merged
merged 14 commits into from
Mar 9, 2023
Merged

Conversation

winder
Copy link
Contributor

@winder winder commented Mar 9, 2023

Migrate automation from Indexer repo:

  • Makefile
  • gitignore
  • ReviewDog linting
  • Github templates
  • Codecov coverage report.
  • CircleCI
  • Linting - I merged the warning config into the standard config, and removed the "after rev" limitation. Linting should be a bit stricter now.

@codecov
Copy link

codecov bot commented Mar 9, 2023

Codecov Report

❗ No coverage uploaded for pull request base (master@2061b2c). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #2   +/-   ##
=========================================
  Coverage          ?   66.64%           
=========================================
  Files             ?       32           
  Lines             ?     1805           
  Branches          ?        0           
=========================================
  Hits              ?     1203           
  Misses            ?      535           
  Partials          ?       67           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@winder winder requested review from algo-dev-service, Eric-Warehime and shiqizng and removed request for algo-dev-service March 9, 2023 15:37
scripts/archtype.sh Outdated Show resolved Hide resolved
GOLDFLAGS += -X github.com/algorand/indexer/version.Dirty=$(if $(filter $(strip $(shell git status --porcelain|wc -c)), "0"),,true)
GOLDFLAGS += -X github.com/algorand/indexer/version.CompileTime=$(shell date -u +%Y-%m-%dT%H:%M:%S%z)
GOLDFLAGS += -X github.com/algorand/indexer/version.GitDecorateBase64=$(shell git log -n 1 --pretty="%D"|base64|tr -d ' \n')
#GOLDFLAGS += -X github.com/algorand/indexer/version.ReleaseVersion=$(shell cat .version)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .version file has always been a bit hacky. I'll look into using goreleaser and git tags to replace it.


test:
go test -coverpkg=$(COVERPKG) ./... -coverprofile=coverage.txt -covermode=atomic ${TEST_FLAG}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we adding the e2e test later?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'd like to add them in a separate PR since this one is already pretty big.

@winder winder merged commit f5c2701 into master Mar 9, 2023
@winder winder deleted the will/automation branch March 9, 2023 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants