Skip to content

Commit a0b7ff9

Browse files
authored
Merge pull request #14 from newcloudtechnologies/CAP-2634
CAP-2634 | fix: update outdated code and dependencies
2 parents e06a8d2 + 6a38f7b commit a0b7ff9

56 files changed

Lines changed: 1942 additions & 1330 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/CI.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,31 @@ on:
66
pull_request:
77
branches: [main, master, develop]
88

9+
permissions:
10+
contents: write
11+
912
jobs:
1013
CI:
1114
runs-on: ubuntu-latest
1215
steps:
13-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v6
1417
with:
1518
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
1619
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
1720

18-
- uses: actions/setup-go@v2
21+
- uses: actions/setup-go@v6
1922
with:
20-
go-version: '1.18'
23+
go-version-file: go.mod
2124

2225
- name: Verify dependencies
2326
run: |
24-
go get -v -t ./...
2527
go mod verify
2628
29+
- name: Validate module graph
30+
run: |
31+
go mod tidy
32+
git diff --exit-code go.mod go.sum
33+
2734
- name: Build
2835
run: make build
2936

@@ -35,15 +42,15 @@ jobs:
3542
sudo swapon -s
3643
3744
- name: Test
38-
run: make test_coverage
45+
run: make test
3946

4047
- name: Go Coverage Badge # Pass the `coverage.out` output to this action
41-
uses: tj-actions/coverage-badge-go@v1.2
48+
uses: tj-actions/coverage-badge-go@v3
4249
with:
4350
filename: coverage.out
4451

4552
- name: Verify changed files
46-
uses: tj-actions/verify-changed-files@v9.1
53+
uses: tj-actions/verify-changed-files@v20
4754
id: verify-changed-files
4855
with:
4956
files: README.md
@@ -58,7 +65,7 @@ jobs:
5865
5966
- name: Push changes
6067
if: steps.verify-changed-files.outputs.files_changed == 'true'
61-
uses: ad-m/github-push-action@master
68+
uses: ad-m/github-push-action@v1.0.0
6269
with:
6370
github_token: ${{ github.token }}
64-
branch: ${{ github.head_ref }}
71+
branch: ${{ github.head_ref || github.ref_name }}

.gitignore

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
__pycache__
12
.idea
2-
test/infra/allocator/config.json
3+
.vscode
4+
allocator
5+
bin/
6+
coverage*out
37
test/allocator/allocator
8+
test/infra/allocator/config.json
49
test/integration/integration-test
5-
venv
6-
__pycache__
7-
coverage*out
10+
venv

0 commit comments

Comments
 (0)