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

.github/workflows,.travis.yml: migrate lint and a couple tests to Github Actions #415

Merged
merged 5 commits into from
Sep 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Lint and Tests
env:
# Set to empty.
ANDROID_HOME:

# Controls when the action will run.
on:
push:
branches:
- master
pull_request:
workflow_dispatch:

jobs:
# Run linter check. Only test code linters on latest version of Go.
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.17
id: go
uses: actions/setup-go@v2
with:
go-version: ^1.17

- uses: actions/checkout@v2
with:
submodules: false

- run: make lint

# Run core-geth -specific tests, proving regression-safety and config interoperability.
test-cg:
name: Tests-CoreGeth
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.17
id: go
uses: actions/setup-go@v2
with:
go-version: ^1.17

- uses: actions/checkout@v2
with:
submodules: recursive

- run: make test-coregeth

# Run build and tests against latest-1 Go version.
test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.16
id: go
uses: actions/setup-go@v2
with:
go-version: ^1.16

- uses: actions/checkout@v2
with:
submodules: recursive

- run: |
make all
make test
33 changes: 0 additions & 33 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,6 @@ sudo: false
jobs:
include:

# Run linter check. Only test code linters on latest version of Go.
- stage: lint
os: linux
dist: xenial
go: 1.16.x
env:
- lint
git:
submodules: false
script:
- make lint

# Run core-geth -specific tests, proving regression-safety and config interoperability.
- stage: build
name: "Go1.16.x: make test-coregeth"
os: linux
dist: xenial
go: 1.16.x
script:
- travis_wait 60 make test-coregeth

# Run build and tests against latest-1 Go version.
- stage: build
name: "Go1.15.x: make test"
os: linux
dist: xenial
go: 1.15.x
env:
- GO111MODULE=on
script:
- make all
- travis_wait 60 make test

# Run build and tests on ARM64 on Pull Requests.
# These tests are divided in half because their aggregate typical runtime
# exceeds Travis' time limit (~60m) and were consistently causing timeouts.
Expand Down