Skip to content

Commit

Permalink
Merge pull request #27 from vansante/ci
Browse files Browse the repository at this point in the history
Replace circleci with github actions
  • Loading branch information
vansante authored Aug 20, 2021
2 parents ec434fe + e342d1a commit 1abe57e
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 36 deletions.
33 changes: 0 additions & 33 deletions .circleci/config.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
- main
- v2
pull_request:

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
25 changes: 25 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.15.x, 1.16.x, 1.17.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Install Linux packages
if: matrix.os == 'ubuntu-latest'
run: sudo apt update && sudo apt install -y --no-install-recommends ffmpeg

- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v2

- name: Test
run: go test -v ./...
6 changes: 4 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,21 @@ linters-settings:

linters:
enable:
- exportloopref
- megacheck
- govet
- golint
- gosec
- unconvert
- goconst
- gocyclo
- gofmt
- maligned
- lll
- revive
- unparam
- nakedret
- misspell
disable:
- exhaustive
enable-all: false
disable-all: false
presets:
Expand Down
2 changes: 1 addition & 1 deletion probedata.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@ func (p *ProbeData) firstStream(streamType StreamType) *Stream {
}
}
return nil
}
}

0 comments on commit 1abe57e

Please sign in to comment.