added first downlink encoder example #215
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: | |
push: | |
paths: | |
- '**.go' | |
- '**.md' | |
- '**.mod' | |
jobs: | |
test: | |
name: Test 🧪 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Generate test coverage | |
env: | |
ENV: test | |
run: go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./... | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Check test coverage | |
uses: vladopajic/go-test-coverage@v2 | |
with: | |
# Configure action using config file (option 1) | |
config: ./.testcoverage.yml | |
profile: cover.out | |
local-prefix: github.com/truvami/decoder | |
threshold-file: 75 | |
threshold-package: 80 | |
threshold-total: 80 | |
- name: Lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.58 | |
- name: Run JSON tags camelCase check | |
run: make check-json-tags |