mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-28 14:47:16 +00:00
parent
625c9f5385
commit
c18fea3a8c
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
||||
tests:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ ubuntu-20.04, macos-11, windows-2019 ] # list of os: https://github.com/actions/virtual-environments
|
||||
os: [ ubuntu-20.04, macos-11, windows-2022 ] # list of os: https://github.com/actions/virtual-environments
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
@ -26,23 +26,28 @@ jobs:
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.18.x
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
if [ "$RUNNER_OS" == "Linux" ]; then
|
||||
sudo apt update && sudo apt install build-essential
|
||||
fi
|
||||
shell: bash
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ matrix.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
|
||||
- name: Install deps
|
||||
if: matrix.os == 'ubuntu-20.04'
|
||||
run: sudo apt update && sudo apt install build-essential
|
||||
shell: bash
|
||||
- name: Install deps
|
||||
if: matrix.os == 'windows-2022'
|
||||
run: choco upgrade mingw cmake -y --no-progress
|
||||
|
||||
- name: Lint
|
||||
if: matrix.os == 'ubuntu-20.04'
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: v1.45
|
||||
- name: Install deps
|
||||
if: matrix.os == 'windows-2019'
|
||||
run: choco upgrade mingw cmake -y --no-progress
|
||||
- name: Test
|
||||
|
||||
- name: Test win
|
||||
if: matrix.os == 'windows-2022'
|
||||
run: go test ./...
|
||||
- name: Test
|
||||
if: matrix.os != 'windows-2022'
|
||||
run: go test -tags gofuzzbeta ./...
|
||||
|
Loading…
Reference in New Issue
Block a user