-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from funbox/develop
Version 0.24.0
- Loading branch information
Showing
21 changed files
with
289 additions
and
114 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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,109 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [master, develop] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
Go: | ||
name: Go | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
SRC_DIR: src/github.com/${{ github.repository }} | ||
GO111MODULE: auto | ||
|
||
strategy: | ||
matrix: | ||
go: [ '1.17.x' ] | ||
|
||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
id: go | ||
|
||
- name: Setup PATH | ||
run: | | ||
echo "GOPATH=${{ github.workspace }}" >> "$GITHUB_ENV" | ||
echo "GOBIN=${{ github.workspace }}/bin" >> "$GITHUB_ENV" | ||
echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: ${{env.SRC_DIR}} | ||
|
||
- name: Download dependencies | ||
working-directory: ${{env.SRC_DIR}} | ||
run: | | ||
make deps deps-test | ||
- name: Run tests | ||
working-directory: ${{env.SRC_DIR}} | ||
run: make test | ||
|
||
Aligo: | ||
name: Aligo | ||
runs-on: ubuntu-latest | ||
|
||
needs: Go | ||
|
||
env: | ||
SRC_DIR: src/github.com/${{ github.repository }} | ||
GO111MODULE: auto | ||
|
||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.17.x' | ||
id: go | ||
|
||
- name: Setup PATH | ||
run: | | ||
echo "GOPATH=${{ github.workspace }}" >> "$GITHUB_ENV" | ||
echo "GOBIN=${{ github.workspace }}/bin" >> "$GITHUB_ENV" | ||
echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: ${{env.SRC_DIR}} | ||
|
||
- name: Download dependencies | ||
working-directory: ${{env.SRC_DIR}} | ||
run: make deps deps-test | ||
|
||
- name: Check Golang sources with Aligo | ||
uses: essentialkaos/aligo-action@v1 | ||
with: | ||
path: ${{env.SRC_DIR}} | ||
files: ./... | ||
|
||
Perfecto: | ||
name: Perfecto | ||
runs-on: ubuntu-latest | ||
|
||
needs: Go | ||
|
||
steps: | ||
- name: Code checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
env: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
if: ${{ env.DOCKERHUB_USERNAME != '' }} | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Check specs with Perfecto | ||
uses: essentialkaos/perfecto-action@v1 | ||
with: | ||
files: common/init-exporter.spec |
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,31 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [master, develop] | ||
pull_request: | ||
branches: [master] | ||
schedule: | ||
- cron: '0 19 * * 1,3,5' | ||
|
||
jobs: | ||
analyse: | ||
name: Analyse | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- run: git checkout HEAD^2 | ||
if: ${{ github.event_name == 'pull_request' }} | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: go | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
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
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
Oops, something went wrong.