Skip to content

Commit

Permalink
fix(notify)!: resolve test & linter issues and fix dependencies compa…
Browse files Browse the repository at this point in the history
…tibility (#847)
  • Loading branch information
nikoksr authored Jul 22, 2024
1 parent 06dfa2e commit e2e77cc
Show file tree
Hide file tree
Showing 96 changed files with 3,716 additions and 2,399 deletions.
22 changes: 0 additions & 22 deletions .devcontainer/devcontainer.json

This file was deleted.

54 changes: 20 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,34 @@
name: Test & Lint
on:
push:
tags:
- "v*.*.*"
branches:
- main
pull_request:
name: Go-test
on: [push, pull_request]

jobs:
test:
strategy:
matrix:
go-version: [ 1.19.x ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
build:
runs-on: ubuntu-latest

steps:
- name: Install Go
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/cache@v4
name: Prepare cache
with:
# In order:
# * Module download cache
# * Build cache (Linux)
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version: stable
- name: Build
run: go build -v ./...
- name: Test with the Go CLI
run: go test ./...
- name: Test coverage
run: go test -race -covermode=atomic -coverprofile=coverage.out ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4

lint:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v4
- name: Lint
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
71 changes: 0 additions & 71 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

Loading

0 comments on commit e2e77cc

Please sign in to comment.