Skip to content

Commit

Permalink
chore: add GHA for go-ethereum
Browse files Browse the repository at this point in the history
- for now on-pull-request and test
  • Loading branch information
leszek-vechain committed Jul 8, 2024
1 parent 9e862dd commit 4e81b98
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/on-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Pull Request CI

on:
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
run-unit-tests:
name: Run Unit Tests
uses: ./.github/workflows/test.yaml
30 changes: 30 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Unit Tests

on:
workflow_call:

env:
GO111MODULE: off

jobs:
unit_tests:
strategy:
matrix:
go-version: [ 1.10.x ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Make all
run: make all

- name: Make Test
id: unit-test
run: make test

0 comments on commit 4e81b98

Please sign in to comment.