Skip to content
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
25 changes: 16 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,31 @@ on:
pull_request:
branches: [main, master, develop]

permissions:
contents: write

jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.

- uses: actions/setup-go@v2
- uses: actions/setup-go@v6
with:
go-version: '1.18'
go-version-file: go.mod

- name: Verify dependencies
run: |
go get -v -t ./...
go mod verify

- name: Validate module graph
run: |
go mod tidy
git diff --exit-code go.mod go.sum

- name: Build
run: make build

Expand All @@ -35,15 +42,15 @@ jobs:
sudo swapon -s

- name: Test
run: make test_coverage
run: make test

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

- name: Verify changed files
uses: tj-actions/verify-changed-files@v9.1
uses: tj-actions/verify-changed-files@v20
id: verify-changed-files
with:
files: README.md
Expand All @@ -58,7 +65,7 @@ jobs:

- name: Push changes
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: ad-m/github-push-action@master
uses: ad-m/github-push-action@v1.0.0
with:
github_token: ${{ github.token }}
branch: ${{ github.head_ref }}
branch: ${{ github.head_ref || github.ref_name }}
11 changes: 7 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
__pycache__
.idea
test/infra/allocator/config.json
.vscode
allocator
bin/
coverage*out
test/allocator/allocator
test/infra/allocator/config.json
test/integration/integration-test
venv
__pycache__
coverage*out
venv
Loading
Loading