From 90a03445e34a92c9a324b4771e680b4831eef495 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Fri, 24 Nov 2023 12:49:38 +0100 Subject: [PATCH] .github/workflows: add github action workflow --- .github/workflows/build-test.yml | 46 ++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/build-test.yml diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000000..80427ab224 --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,46 @@ +name: go-ethereum workflow + +on: + push: + branches: + - master + tags: + - '**' + pull_request: + branches: + - master + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.20.5 + - name: Lint + run: go run build/ci.go lint + - name: Build + run: go run build/ci.go install -dlgo + + test: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + + needs: lint + steps: + - uses: actions/checkout@v2 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.20.5 + - name: Install Submodules + run: git submodule update --init --depth 1 --recursive + - name: Test + run: go run build/ci.go test -dlgo +