Skip to content

Commit

Permalink
Refactor coreth workflows for use in the its new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
marun committed Jan 17, 2024
1 parent b64819d commit cbb51a0
Show file tree
Hide file tree
Showing 11 changed files with 115 additions and 335 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: [coreth] 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: [coreth] 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: ./coreth/scripts/coverage.sh
shell: bash
test-race:
name: [coreth] 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: [coreth] 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: ~/.testnetctl/networks/1000
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml → .github/workflows/ci.subnet-evm.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
name: Build + Test + Lint
name: [subnet-evm] Build + Test + Lint

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

jobs:
lint_test:
name: Lint
name: [subnet-evm] Lint
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
Expand All @@ -28,7 +32,7 @@ jobs:
args: --timeout 10m

unit_test:
name: Golang Unit Tests
name: [subnet-evm] Golang Unit Tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
Expand All @@ -46,7 +50,7 @@ jobs:
shell: bash

e2e_precompile:
name: e2e precompile tests
name: [subnet-evm] e2e precompile tests
runs-on: ubuntu-latest
steps:
- name: Git checkout
Expand Down Expand Up @@ -88,7 +92,7 @@ jobs:
path: /tmp/network-runner-root-data*/
retention-days: 5
e2e_warp:
name: e2e warp tests
name: [subnet-evm] e2e warp tests
runs-on: ubuntu-latest
steps:
- name: Git checkout
Expand Down Expand Up @@ -130,7 +134,7 @@ jobs:
path: /tmp/network-runner-root-data*/
retention-days: 5
e2e_load:
name: e2e load tests
name: [subnet-evm] e2e load tests
runs-on: ubuntu-latest
steps:
- name: Git checkout
Expand Down Expand Up @@ -160,7 +164,7 @@ jobs:
retention-days: 5

build_image:
name: Build Docker Image
name: [subnet-evm] Build Docker Image
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
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.

Loading

0 comments on commit cbb51a0

Please sign in to comment.