This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
Fix stalled event processing #459
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'CI' | |
on: | |
pull_request: | |
branches: | |
- master | |
types: | |
- opened | |
- synchronize | |
- edited | |
workflow_call: | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Install Go' | |
if: success() | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18.x | |
- name: 'Checkout code' | |
uses: actions/checkout@v2 | |
with: | |
submodules: "true" | |
- name: 'Cache go modules' | |
uses: actions/cache@v2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
#Core module | |
- name: 'Run linters core module' | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
working-directory: 'core' | |
version: v1.50 | |
args: --timeout 5m | |
- name: 'Run unit tests core module' | |
run: go test -v ./core/... |