Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into issue75
Browse files Browse the repository at this point in the history
  • Loading branch information
xhit committed Jul 4, 2023
2 parents 5e2b13b + ea7ecef commit 0cb04f1
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 43 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "CodeQL"

on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '0 6 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: ['go']

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
50 changes: 28 additions & 22 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,38 @@
name: Go
on: [push, pull_request]
name: build
jobs:

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
test:
strategy:
matrix:
go-version: [1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x]
os: [ubuntu-latest, macos-latest, windows-latest]
targetplatform: [x86, x64]

jobs:
runs-on: ${{ matrix.os }}

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.14
uses: actions/setup-go@v2
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.14
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
go-version: ${{ matrix.go-version }}

# - name: Get dependencies
# run: go get -v -t -d ./...
- name: Checkout code
uses: actions/checkout@v3

# - name: Build
# run: go build -v .
- name: Get dependencies
run: |
env GO111MODULE=on go vet ./...
- name: Build
run: go build -v .

- name: Test
run: go test -v .
run: env GO111MODULE=on go test -v -timeout 30m -race -coverprofile='coverage.txt' -covermode=atomic

- name: Codecov
uses: codecov/codecov-action@v3
with:
file: coverage.txt
flags: unittests
name: codecov-umbrella
20 changes: 0 additions & 20 deletions .github/workflows/golangci-lint.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ _testmain.go

# Eclipse Project files
.project
.settings
.settings

# Go coverage file
coverage.txt

0 comments on commit 0cb04f1

Please sign in to comment.