-
Notifications
You must be signed in to change notification settings - Fork 838
[migrate-coreth][5] Migrate CI #4535
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
base: maru/migrate-coreth-4-go-module
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| name: Coreth | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| merge_group: | ||
| types: [checks_requested] | ||
|
|
||
| jobs: | ||
| lint_test: | ||
| name: Lint | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: ./graft/coreth | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: ./.github/actions/setup-go-for-project | ||
| - name: Run all lint checks | ||
| run: ./scripts/run_task.sh lint-all-ci | ||
| - name: Check go.mod and go.sum are up-to-date | ||
| run: ./scripts/run_task.sh check-go-mod-tidy | ||
|
|
||
| unit_test: | ||
| name: Unit Tests (${{ matrix.os }}) | ||
| runs-on: ${{ matrix.os }} | ||
| defaults: | ||
| run: | ||
| working-directory: ./graft/coreth | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [macos-latest, ubuntu-22.04, ubuntu-latest] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: ./.github/actions/setup-go-for-project | ||
| - run: ./scripts/run_task.sh build-test | ||
| - run: ./scripts/run_task.sh coverage | ||
|
|
||
| e2e_warp: | ||
| name: E2E Warp Tests | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Git checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Run Warp E2E Tests | ||
| uses: ./.github/actions/run-monitored-tmpnet-cmd | ||
| with: | ||
| run: ./scripts/run_task.sh test-e2e-warp-ci | ||
| working_directory: ./graft/coreth | ||
| artifact_prefix: warp | ||
| prometheus_url: ${{ secrets.PROMETHEUS_URL || '' }} | ||
| prometheus_push_url: ${{ secrets.PROMETHEUS_PUSH_URL || '' }} | ||
| prometheus_username: ${{ secrets.PROMETHEUS_ID || '' }} | ||
| prometheus_password: ${{ secrets.PROMETHEUS_PASSWORD || '' }} | ||
| loki_url: ${{ secrets.LOKI_URL || '' }} | ||
| loki_push_url: ${{ secrets.LOKI_PUSH_URL || '' }} | ||
| loki_username: ${{ secrets.LOKI_ID || '' }} | ||
| loki_password: ${{ secrets.LOKI_PASSWORD || '' }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,24 @@ issues: | |
| # Maximum count of issues with the same text. | ||
| max-same-issues: 0 | ||
|
|
||
| formatters: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is necessary to allow dynamically appending excluded files at the bottom of the lint file for coreth linting |
||
| enable: | ||
| - gci | ||
| - gofmt | ||
| - gofumpt | ||
| settings: | ||
| gci: | ||
| sections: | ||
| - standard | ||
| - default | ||
| - blank | ||
| - prefix(github.com/ava-labs/avalanchego) | ||
| - alias | ||
| - dot | ||
| custom-order: true | ||
| exclusions: | ||
| generated: lax | ||
|
|
||
| linters: | ||
| default: none | ||
| enable: | ||
|
|
@@ -240,20 +258,3 @@ linters: | |
| linters: | ||
| - gosec | ||
| - prealloc | ||
| formatters: | ||
| enable: | ||
| - gci | ||
| - gofmt | ||
| - gofumpt | ||
| settings: | ||
| gci: | ||
| sections: | ||
| - standard | ||
| - default | ||
| - blank | ||
| - prefix(github.com/ava-labs/avalanchego) | ||
| - alias | ||
| - dot | ||
| custom-order: true | ||
| exclusions: | ||
| generated: lax | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ WORKDIR /build | |
| # Copy and download avalanche dependencies using go mod | ||
| COPY go.mod . | ||
| COPY go.sum . | ||
| COPY graft/coreth ./graft/coreth | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Without this the subsequent line fails due to the replace directive pointing to a local path |
||
| RUN go mod download | ||
|
|
||
| # Copy the code into the container | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was required to allow usage of the action from the graft/coreth path.