Skip to content
This repository was archived by the owner on Dec 10, 2020. It is now read-only.

Commit bcd6d51

Browse files
committed
Upgrade CI Provider from Travis to GH Actions
1 parent 9687870 commit bcd6d51

File tree

4 files changed

+51
-42
lines changed

4 files changed

+51
-42
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags:
7+
- '*'
8+
pull_request:
9+
types: [opened, reopened, synchronize]
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: 10.x
17+
- uses: actions/checkout@v1
18+
- run: npm install
19+
- run: npm run lint
20+
21+
test:
22+
runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
node-version: [10.x, 12.x, 13.x, 14.x]
26+
steps:
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v1
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
- uses: actions/checkout@v1
32+
- run: npm install
33+
- run: git submodule update --init --recursive
34+
- run: npm run test

.travis.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# SYNOPSIS
2-
[![Build Status](https://img.shields.io/travis/ethereumjs/ethereumjs-testing.svg?branch=master&style=flat-square)](https://travis-ci.org/ethereumjs/ethereumjs-testing)
3-
[![Gitter](https://img.shields.io/gitter/room/ethereum/ethereumjs.svg?style=flat-square)]()
1+
# SYNOPSIS
2+
3+
[![Actions Status](https://github.com/ethereumjs/ethereumjs-testing/workflows/Build/badge.svg)](https://github.com/ethereumjs/ethereumjs-testing/actions)
4+
[![Gitter](https://img.shields.io/gitter/room/ethereum/ethereumjs.svg)](https://gitter.im/ethereum/ethereumjs)
45

56
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
67

@@ -9,6 +10,7 @@ Testing utilities for the ethereumjs stack.
910
Uses the offical [Ethereum Tests](https://github.com/ethereum/tests).
1011

1112
To fetch the latest tests:
13+
1214
```
1315
cd [SUBMODULE_FOLDER]
1416
git fetch --tags origin develop
@@ -19,7 +21,7 @@ git add [SUBMODULE_FOLDER]
1921
git commit -m "[MESSAGE_ON_TEST_RELEASE_UPDATE]"
2022
```
2123

22-
Releases on npm are outdated, latest releases are only done as tagged versions on GitHub due to npm size constraints, use e.g. ``git+https://github.com/ethereumjs/ethereumjs-testing.git#[LATEST_TAG_VERSION]`` in
24+
Releases on npm are outdated, latest releases are only done as tagged versions on GitHub due to npm size constraints, use e.g. `git+https://github.com/ethereumjs/ethereumjs-testing.git#[LATEST_TAG_VERSION]` in
2325
your dependencies.
2426

2527
## API
@@ -29,29 +31,33 @@ const testing = require('ethereumjs-testing')
2931
```
3032

3133
#### `testing.getTestsFromArgs(testType, onFile, args = {})`
34+
3235
Reads tests of a certain test type from several folders and files
33-
- `testType` - Type of the test (``GeneralStateTests``, ``BlockchainTests``, ``VMTests``)
36+
37+
- `testType` - Type of the test (`GeneralStateTests`, `BlockchainTests`, `VMTests`)
3438
- `onFile` - Function to run the tests (see example)
3539
- `args`
36-
- `forkConfig` - Run tests for selected fork (``BlockchainTests`` only)
40+
- `forkConfig` - Run tests for selected fork (`BlockchainTests` only)
3741
- `dir` - Only run tests from subdirectory
3842
- `file` - File filter to apply
3943
- `excludeDir` - Exclude directory filter to apply
4044
- `test` - Only run a single test case
41-
- `testsPath` - Path to the tests repository (without the ``tests`` dir)
45+
- `testsPath` - Path to the tests repository (without the `tests` dir)
4246
- `skipTests` - List of tests to skip
4347
- `skipVM` - List of VM tests to skip
4448

4549
#### `testing.getTestFromSource(file, onFile)`
50+
4651
Reads custom test from a relative path or file
52+
4753
- `file` - Relative path or filename
4854
- `onFile` - Function to run the tests (see example)
4955

5056
#### `testing.getSingleFile(file)`
57+
5158
Reads a single test file
52-
- `file` - Path to the file
5359

60+
- `file` - Path to the file
5461

55-
Examples how to read tests with the API methods above can be found in
62+
Examples how to read tests with the API methods above can be found in
5663
the [./examples](./examples/) directory.
57-

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"lint": "standard",
8-
"test": "node test/index.js",
9-
"build": "node ./buildTests.js"
8+
"test": "node test/index.js"
109
},
1110
"repository": {
1211
"type": "git",

0 commit comments

Comments
 (0)