From 5f1f7857c8e20d27ac10ae23f5fc39abeedabb50 Mon Sep 17 00:00:00 2001 From: Martin Tournoij Date: Wed, 16 Nov 2022 03:26:34 +0100 Subject: [PATCH] Run FreeBSD CI on Cirrus --- .cirrus.yml | 12 ++++++++++++ .github/workflows/test.yml | 16 ---------------- 2 files changed, 12 insertions(+), 16 deletions(-) create mode 100644 .cirrus.yml diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 0000000..89cd022 --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,12 @@ +freebsd_task: + name: 'FreeBSD' + freebsd_instance: + image_family: freebsd-13-1 + install_script: + - pkg update -f + - pkg install -y go + test_script: + # run tests as user "cirrus" instead of root + - pw useradd cirrus -m + - chown -R cirrus:cirrus . + - sudo -u cirrus go test -race ./... diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 23431e7..98b86ea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -72,22 +72,6 @@ jobs: run: | go test -race ./... - # FreeBSD - testFreeBSD: - runs-on: macos-12 - name: test (freebsd, 1.18) - steps: - - uses: actions/checkout@v3 - - name: test (freebsd, 1.18) - id: test - uses: vmactions/freebsd-vm@v0 - with: - usesh: true - prepare: pkg install -y go - run: | - pw user add -n action -m - su action -c 'go test -race ./...' - # OpenBSD; no -race as the VM doesn't include the comp set. # # TODO: should probably add this, but on my local machine the tests time out -- 2.50.1