From 4e81b98c6e9e8644460c5834ae5e580d4f188092 Mon Sep 17 00:00:00 2001 From: leszek-vechain Date: Mon, 8 Jul 2024 19:16:16 +0100 Subject: [PATCH] chore: add GHA for go-ethereum - for now on-pull-request and test --- .github/workflows/on-pull-request.yaml | 15 +++++++++++++ .github/workflows/test.yaml | 30 ++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/on-pull-request.yaml create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/on-pull-request.yaml b/.github/workflows/on-pull-request.yaml new file mode 100644 index 000000000000..8096e3ed353e --- /dev/null +++ b/.github/workflows/on-pull-request.yaml @@ -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 \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 000000000000..27eff9fcffcd --- /dev/null +++ b/.github/workflows/test.yaml @@ -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 \ No newline at end of file