Skip to content
Open
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
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ jobs:

test:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
Expand All @@ -60,7 +63,11 @@ jobs:
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- name: Run tests with coverage
run: make test-coverage

- name: Upload results to Codecov
uses: codecov/codecov-action@v7
with:
use_oidc: true
files: .coverdata/unit.out,.coverdata/integration.out
test-fedora:
runs-on: ubuntu-latest
container:
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ test-coverage:
go test -cover ./... -args -test.gocoverdir=$(COVERDIR)/unit
GOCOVERDIR=$(COVERDIR)/integration python3 tests/test-synthetic.py
GOCOVERDIR=$(COVERDIR)/integration tests/integration-test.sh
go tool covdata percent -i $(COVERDIR)/unit,$(COVERDIR)/integration
go tool covdata textfmt -i=$(COVERDIR)/unit -o=$(COVERDIR)/unit.out
go tool covdata textfmt -i=$(COVERDIR)/integration -o=$(COVERDIR)/integration.out

test-e2e: build
@echo "Running E2E tests (requires KVM for full coverage, falls back to container mode)"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![codecov](https://codecov.io/gh/containers/oci-delta/branch/main/graph/badge.svg)](https://codecov.io/gh/containers/oci-delta)

# oci-delta

oci-delta is a tool to take two oci archive files, called the "old" and "new" image below,
Expand Down