Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codec & serializer - initial implementation #1

Merged
merged 24 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/check-code-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Check code coverage

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:

jobs:
build:
strategy:
matrix:
runs-on: [ubuntu-latest]
runs-on: ${{ matrix.runs-on }}
name: Build
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.20.7

- uses: actions/checkout@v4

- name: Run tests
run: |
go test -cover -coverprofile=coverage.txt -covermode=atomic -v ./...

- name: Upload coverage
run: bash <(curl -s https://codecov.io/bash) -f coverage.txt -y codecov.yml
29 changes: 29 additions & 0 deletions .github/workflows/run-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Run linter

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:

permissions:
contents: read

jobs:
golangci:
name: golangci linter
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.20.7

- uses: actions/checkout@v4

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.53.2
args: --timeout 10m0s --max-issues-per-linter 0 --max-same-issues 0 --print-issued-lines
only-new-issues: true
24 changes: 24 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run tests

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.20.7

- uses: actions/checkout@v4

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
Loading
Loading