Skip to content

ci: migrate from circleci to github actions #2

ci: migrate from circleci to github actions

ci: migrate from circleci to github actions #2

Workflow file for this run

name: Go
on:
push:
branches: [ eigenda-develop ]
pull_request:
jobs:
go-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Install and run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2
args: -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint --timeout 5m -e "errors.As" -e "errors.Is" ./...
go-tests:
needs: [go-lint]
runs-on: ubuntu-latest
strategy:
matrix:
packages:
- op-batcher
- op-node
- op-e2e/system/altda
- op-e2e/actions/altda
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Run tests
run: |
mkdir -p ./tmp/test-results && mkdir -p ./tmp/testlogs
cd op-e2e && make pre-test && cd ..
go test -timeout=10m ./${{ matrix.packages }}/...