Skip to content

Merge pull request #155 from lazybytez/feature/drop-codecov #684

Merge pull request #155 from lazybytez/feature/drop-codecov

Merge pull request #155 from lazybytez/feature/drop-codecov #684

Workflow file for this run

# Continues integration workflow to continuously check
# code quality and run tests before merging PRs
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
env:
IS_CI: true
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.2
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: make install
- name: Run Go linters
uses: golangci/golangci-lint-action@v4
with:
version: v1.57.2
skip-cache: true
tests:
runs-on: ubuntu-latest
env:
IS_CI: true
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.2
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: make install
- name: Build project
run: make build
- name: Run Go tests
run: go test -race -covermode=atomic -coverpkg=all -coverprofile=coverage.out ./...