-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0f0671
commit be60da4
Showing
11 changed files
with
210 additions
and
16 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,21 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2022 Intel Corporation | ||
|
||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
|
||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
|
||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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,45 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2022 Intel Corporation | ||
name: Docker image | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout and build | ||
- uses: actions/checkout@v3 | ||
- name: Build and push Docker image | ||
run: | | ||
make docker-build | ||
# push-dockerhub: | ||
# env: | ||
# DOCKER_REGISTRY: "docker.io/" | ||
# DOCKER_REPOSITORY: "badhrinathpa/" | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# | ||
# - run: echo GIT_SHA_SHORT=$(git rev-parse --short HEAD) >> $GITHUB_ENV | ||
# | ||
# - id: docker-login | ||
# uses: docker/login-action@v2.1.0 | ||
# with: | ||
# registry: docker.io | ||
# username: ${{ secrets.DOCKER_HUB_LOGIN }} | ||
# password: ${{ secrets.DOCKER_HUB_PASSWORD }} | ||
# | ||
# - name: Build and push "master-latest" Docker images | ||
# env: | ||
# DOCKER_TAG: master-${{ env.GIT_SHA_SHORT } | ||
# run: | | ||
# make docker-build | ||
# make docker-push | ||
|
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,21 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2022 Intel Corporation | ||
name: golangci-lint | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
branches: | ||
- master | ||
pull_request: | ||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3.2.0 | ||
with: | ||
version: latest | ||
args: -v --config ./.golangci.yml |
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,48 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2022 Intel Corporation | ||
name: Pull Request | ||
|
||
on: [pull_request] | ||
|
||
concurrency: | ||
group: ${{ github.event.pull_request.number }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
build: | ||
#env: | ||
# DOCKER_REGISTRY: "docker.io/" | ||
# DOCKER_REPOSITORY: "badhrinathpa/" | ||
# VERSION: "PR-${{ github.event.pull_request.number }}" | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout and build | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build Docker image | ||
run: | | ||
make docker-build | ||
# Format the code | ||
- name: Go Format | ||
run: | | ||
make fmt | ||
- name: Show all CI changes | ||
run: | | ||
git --no-pager diff | ||
# Build again and commit | ||
- name: Build Docker image after format | ||
run: | | ||
make docker-build | ||
- name: Update PR with changes | ||
uses: gr2m/create-or-update-pull-request-action@v1.x | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
body: | | ||
Updated with changes from CI | ||
branch: ${{ github.event.pull_request.head.ref }} | ||
author: "Github Actions <actions@github>" | ||
commit-message: "Actions: Updated with changes from CI" |
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,18 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2022 Intel Corporation | ||
--- | ||
name: REUSE | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
license-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: reuse lint | ||
run: make check-reuse |
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,21 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2022 Intel Corporation | ||
|
||
name: Unit tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
unit-test-pfcpiface: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
|
||
- name: Run unit tests for UDM | ||
run: | | ||
make test |
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
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
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