Skip to content

Commit

Permalink
Enable coreth github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
marun committed Jan 17, 2024
1 parent b64819d commit 09990df
Show file tree
Hide file tree
Showing 13 changed files with 112 additions and 332 deletions.
103 changes: 103 additions & 0 deletions .github/workflows/ci.coreth.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: coreth CI
on:
push:
branches:
- master
paths:
- 'coreth/**'
pull_request:
paths:
- 'coreth/**'

env:
go_version: '~1.20.12'

jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ./coreth
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ env.go_version }}
check-latest: true
- run: ./scripts/lint_allowed_geth_imports.sh
shell: bash
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
working-directory: ./coreth
args: --timeout 3m
test:
name: Golang Unit Tests v${{ matrix.go }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11.0, ubuntu-20.04, windows-latest]
defaults:
run:
working-directory: ./coreth
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ env.go_version }}
check-latest: true
- run: go mod download
shell: bash
- run: ./scripts/build.sh evm
shell: bash
- run: ./scripts/build_test.sh
shell: bash
- run: ./scripts/coverage.sh
shell: bash
test-race:
name: Golang Unit Tests Race Detection v${{ matrix.go }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
defaults:
run:
working-directory: ./coreth
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ env.go_version }}
check-latest: true
- run: go mod download
shell: bash
- run: ./scripts/build.sh evm
shell: bash
- run: ./scripts/build_test.sh -race
shell: bash
avalanchego_e2e:
name: AvalancheGo E2E Tests v${{ matrix.go }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04 ]
defaults:
run:
working-directory: ./coreth
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ env.go_version }}
check-latest: true
- name: Run e2e tests
run: E2E_SERIAL=1 ./scripts/tests.e2e.sh
shell: bash
- name: Upload testnet network dir
uses: actions/upload-artifact@v3
if: always()
with:
name: testnet-data
path: ~/.tmpnet/networks/1000
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
name: Build + Test + Lint
name: subnet-evm CI

on:
push:
branches:
- master
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
paths-ignore:
- 'coreth/**'
pull_request:
paths-ignore:
- 'coreth/**'

jobs:
lint_test:
Expand Down
9 changes: 0 additions & 9 deletions coreth/.github/CODEOWNERS

This file was deleted.

35 changes: 0 additions & 35 deletions coreth/.github/CONTRIBUTING.md

This file was deleted.

34 changes: 0 additions & 34 deletions coreth/.github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

20 changes: 0 additions & 20 deletions coreth/.github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

11 changes: 0 additions & 11 deletions coreth/.github/dependabot.yml

This file was deleted.

5 changes: 0 additions & 5 deletions coreth/.github/pull_request_template.md

This file was deleted.

142 changes: 0 additions & 142 deletions coreth/.github/workflows/ci.yml

This file was deleted.

Loading

0 comments on commit 09990df

Please sign in to comment.