-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into issue75
- Loading branch information
Showing
4 changed files
with
67 additions
and
43 deletions.
There are no files selected for viewing
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
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 |
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
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 |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,7 @@ _testmain.go | |
|
||
# Eclipse Project files | ||
.project | ||
.settings | ||
.settings | ||
|
||
# Go coverage file | ||
coverage.txt |