Skip to content

Commit 884c07e

Browse files
committed
ci: Disable acceptance tests on macOS and Windows
Many of these are not passing due to OS-specific behavior. Signed-off-by: James Alseth <[email protected]>
1 parent 2f37a89 commit 884c07e

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/pr.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,19 @@ jobs:
108108
$env:Path += ";C:\Users\runneradmin\.local\share\bats\bin"
109109
make test-examples
110110
111-
- name: acceptance (nix)
112-
if: ${{ matrix.os != 'windows-latest' }}
111+
- name: acceptance (ubuntu)
112+
if: ${{ matrix.os == 'ubuntu-latest' }}
113113
run: make test-acceptance
114114

115-
- name: acceptance (windows)
116-
if: ${{ matrix.os == 'windows-latest' }}
117-
run: |
118-
$env:Path += ";C:\Users\runneradmin\.local\share\bats\bin"
119-
make test-acceptance
115+
# TODO: Uncomment as a part of https://github.com/open-policy-agent/conftest/issues/1203
116+
# - name: acceptance (windows)
117+
# if: ${{ matrix.os == 'windows-latest' }}
118+
# run: |
119+
# $env:Path += ";C:\Users\runneradmin\.local\share\bats\bin"
120+
# make test-acceptance
120121

121122
- name: test oci push/pull
123+
if: ${{ matrix.os == 'ubuntu-latest' }}
122124
run: ./scripts/push-pull-e2e.sh
123125

124126
docker-conftest:

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ test-examples: build ## Runs the tests for the examples.
4040
.PHONY: test-acceptance
4141
test-acceptance: build install-test-deps ## Runs the tests in the test folder.
4242
@for testdir in $(TEST_DIRS) ; do \
43+
echo Testing $$testdir; \
4344
cd $(CURDIR)/$$testdir && CONFTEST=$(ROOT_DIR)/$(BIN) bats test.bats || exit 1; \
4445
done
4546

0 commit comments

Comments
 (0)