Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(CI): Setting up basics for CI on the SDK #5

Merged
merged 1 commit into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 29 additions & 29 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,38 +30,38 @@ jobs:
**/*.go
go.mod
go.sum
- name: tests
- name: Unit Tests
if: env.GIT_DIFF
run: |
make test
test-e2e:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v3
- uses: technote-space/get-diff-action@v6.1.2
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: actions/setup-go@v4
if: env.GIT_DIFF
with:
go-version: "1.20"
cache: true
# test-integration:
# runs-on: ubuntu-latest
# timeout-minutes: 25
# steps:
# - uses: actions/checkout@v3
# - uses: technote-space/get-diff-action@v6.1.2
# with:
# PATTERNS: |
# **/**.go
# go.mod
# go.sum
# - uses: actions/setup-go@v4
# if: env.GIT_DIFF
# with:
# go-version: "1.20"
# cache: true

# In this step, this action saves a list of existing images, the cache is
# created without them in the post run. It also restores the cache if it
# exists.
- name: cache docker layer
uses: satackey/action-docker-layer-caching@v0.0.11
if: env.GIT_DIFF
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true
# # In this step, this action saves a list of existing images, the cache is
# # created without them in the post run. It also restores the cache if it
# # exists.
# - name: cache docker layer
# uses: satackey/action-docker-layer-caching@v0.0.11
# if: env.GIT_DIFF
# # Ignore the failure of a step and avoid terminating the job.
# continue-on-error: true

- name: Test E2E
if: env.GIT_DIFF
run: |
make test-integration
# - name: Integration Tests
# if: env.GIT_DIFF
# run: |
# make test-integration
11 changes: 0 additions & 11 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ run:
sort-results: true
allow-parallel-runners: true
concurrency: 4
skip-dirs:
- tests/e2e

linters:
disable-all: true
Expand Down Expand Up @@ -35,15 +33,6 @@ issues:
- text: "Use of weak random number generator"
linters:
- gosec
# - text: "ST1003:"
# linters:
# - stylecheck
# - text: "ST1016:"
# linters:
# - stylecheck
# - text: "leading space"
# linters:
# - nolintlint

max-issues-per-linter: 10000
max-same-issues: 10000
Expand Down
18 changes: 1 addition & 17 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,4 @@ pull_request_rules:
actions:
backport:
branches:
- release/v1.x.x
- name: backport patches to v1.x.x-polaris branch
conditions:
- base=main
- label=backport/v1.x.x-polaris
actions:
backport:
branches:
- release/v1.x.x-polaris
- name: backport patches to v2.x.x branch
conditions:
- base=main
- label=backport/v2.x.x
actions:
backport:
branches:
- release/v2.x.x
- release/v1.x.x