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
2 changes: 1 addition & 1 deletion .github/workflows/cflite-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fuzz-seconds: 600
fuzz-seconds: 300
mode: 'code-change'
sanitizer: ${{ matrix.sanitizer }}
output-sarif: true
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ jobs:
- debian:latest
- ubuntu:latest
- fedora:latest
test:
- root
- rootless
env:
TEST_DOCKER_IMAGE: ${{ matrix.image }}
COVERAGE: umoci.coverage
Expand All @@ -165,7 +168,7 @@ jobs:
${{ github.workflow }}-image-
- name: load ci image
run: make ci-cache
- run: make TEST_DOCKER_IMAGE=$TEST_DOCKER_IMAGE test-integration
- run: make TEST_DOCKER_IMAGE=$TEST_DOCKER_IMAGE test-${{ matrix.test }}-integration
- run: go tool covdata textfmt -i "$GOCOVERDIR" -o "$COVERAGE"
- name: codecov
uses: codecov/codecov-action@v5
Expand Down Expand Up @@ -202,3 +205,15 @@ jobs:
with:
name: coverage
path: ${{ env.GOCOVERDIR }}

complete:
runs-on: ubuntu-latest
needs:
- release
- validate
- macos
- unit
- integration
- coverage
steps:
- run: echo "all done"
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,16 @@ local-test-unit:
TESTS ?=

.PHONY: test-integration
test-integration: ci-image
test-integration: test-root-integration test-rootless-integration

.PHONY: test-root-integration
test-root-integration: ci-image umoci.cover
mkdir -p $(GOCOVERDIR) && chmod a+rwx $(GOCOVERDIR)
$(DOCKER_ROOTPRIV_RUN) -e GOCOVERDIR -e TESTS $(UMOCI_IMAGE) make local-test-integration

.PHONY: test-rootless-integration
test-rootless-integration: ci-image umoci.cover
mkdir -p $(GOCOVERDIR) && chmod a+rwx $(GOCOVERDIR)
$(DOCKER_ROOTLESS_RUN) -e GOCOVERDIR -e TESTS $(UMOCI_IMAGE) make local-test-integration

.PHONY: local-test-integration
Expand All @@ -214,7 +221,7 @@ CI_CACHE_PATH ?=.ci-cache
.PHONY: ci-cache
ci-cache: BUILDX_CACHE := \
--cache-from=type=local,src=$(CI_CACHE_PATH) \
--cache-to=type=local,mode=max,dest=$(CI_CACHE_PATH)
--cache-to=type=local,dest=$(CI_CACHE_PATH)
ci-cache: ci-image

.PHONY: ci-image
Expand Down