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

CI concurrency #804

Merged
merged 10 commits into from
Jul 30, 2020
2 changes: 1 addition & 1 deletion .github/workflows/account-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10, 12, 13, 14]
node-version: [12]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/block-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10, 12, 13, 14]
node-version: [12]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/blockchain-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10, 12, 13, 14]
node-version: [12]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/common-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10, 12, 13, 14]
node-version: [12]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ethash-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10, 12, 13, 14]
node-version: [12]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tx-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10, 12, 13, 14]
node-version: [12]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/vm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
- master
tags:
- '*'
pull_request:
types: [opened, reopened, synchronize]

env:
cwd: ${{github.workspace}}/packages/vm
Expand Down
111 changes: 111 additions & 0 deletions .github/workflows/vm-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: VM
on:
pull_request:
types: [opened, reopened, synchronize]

env:
cwd: ${{github.workspace}}/packages/vm

defaults:
run:
working-directory: packages/vm

jobs:
test-vm-api:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: actions/checkout@v1

- name: Dependency cache
uses: actions/cache@v2
id: cache
with:
key: VM-${{ runner.os }}-12-${{ hashFiles('**/package-lock.json') }}
path: '**/node_modules'

# Installs root dependencies, ignoring Bootstrap All script.
# Bootstraps the current package only
- run: npm install --ignore-scripts && npm run bootstrap:vm
if: steps.cache.outputs.cache-hit != 'true'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build:vm
working-directory: ${{github.workspace}}

- run: npm run coverage

- uses: codecov/codecov-action@v1
with:
file: ${{ env.cwd }}/coverage/lcov.info
flags: vm

- run: npm run test:API
- run: npm run test:API:browser
- run: npm run lint

test-vm-state:
runs-on: ubuntu-latest
strategy:
matrix:
fork: ['Petersburg', 'Istanbul', 'MuirGlacier']
fail-fast: false
steps:
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: actions/checkout@v1

- name: Dependency cache
uses: actions/cache@v2
id: cache
with:
key: VM-${{ runner.os }}-12-${{ hashFiles('**/package-lock.json') }}
path: '**/node_modules'

# Installs root dependencies, ignoring Bootstrap All script.
# Bootstraps the current package only
- run: npm install --ignore-scripts && npm run bootstrap:vm
if: steps.cache.outputs.cache-hit != 'true'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build:vm
working-directory: ${{github.workspace}}

- run: npm run test:state -- --fork=${{ matrix.fork }}

test-vm-blockchain:
runs-on: ubuntu-latest
strategy:
matrix:
# This is the most fair division among 1 directory vs. everything else
args: ['--excludeDir=stTimeConsuming', '--dir=GeneralStateTests/stTimeConsuming']
fail-fast: false
steps:
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: actions/checkout@v1

- name: Dependency cache
uses: actions/cache@v2
id: cache
with:
key: VM-${{ runner.os }}-12-${{ hashFiles('**/package-lock.json') }}
path: '**/node_modules'

# Installs root dependencies, ignoring Bootstrap All script.
# Bootstraps the current package only
- run: npm install --ignore-scripts && npm run bootstrap:vm
if: steps.cache.outputs.cache-hit != 'true'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build:vm
working-directory: ${{github.workspace}}

- run: npm run test:blockchain -- ${{ matrix.args }}
3 changes: 2 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ coverage:
target: auto
threshold: 2%
base: auto

comment:
layout: 'reach, flags'
Loading