From 1e8ffe44865ebe681686e2e17ec9bf194ba7099d Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sun, 26 Feb 2023 12:01:55 +0100 Subject: [PATCH] circleci: run platform tests in CircleCI --- .circleci/config.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 90a1f33..0e5f8ee 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -108,6 +108,14 @@ workflows: - goversion: *latest-go-release goos: linux goarch: amd64 + - platformtest: + matrix: + parameters: + goversion: [*latest-go-release] + goos: ["linux"] + goarch: ["amd64"] + requires: + - quickcheck-go-<< matrix.goarch >>-<< matrix.goos >>-<< matrix.goversion >> release: when: << pipeline.parameters.do_release >> @@ -187,6 +195,31 @@ jobs: - run: rm -f artifacts/generate-platform-test-list - store_artifacts: path: artifacts + - persist_to_workspace: + root: . + paths: [.] + + platformtest: + parameters: + goversion: + type: string + goos: + type: string + goarch: + type: string + machine: + image: ubuntu-2204:current + resource_class: medium + environment: + GOOS: <> + GOARCH: <> + steps: + - attach_workspace: + at: . + - run: sudo apt-get update + - run: sudo apt-get install -y zfsutils-linux + - run: sudo zfs version + - run: sudo make test-platform GOOS="$GOOS" GOARCH="$GOARCH" test-go-on-latest-go-release: parameters: