From a54309a199b38fc54036cd48b96dbdaa5e018ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AA=E3=82=A6=E3=82=B9?= Date: Mon, 12 Dec 2022 11:47:29 -0500 Subject: [PATCH] Removed darwin, disabled CGO due to fsckery --- .github/workflows/tests.yml | 39 +++++++++++++++++++++++++++++++++++++ .goreleaser.yaml | 15 +------------- 2 files changed, 40 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..67ef3f2 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,39 @@ +name: Tests + +on: [push] + +jobs: + tests: + defaults: + run: + shell: bash + + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 + + - name: Install dependencies + run: make install-deps + + - name: Build + run: make + + - name: Go test + run: go test -v ./ + + - name: Run xbsapi in background + run: | + ./xbsapi & + + - name: Run integration tests + env: + XBSAPI_API_URL: http://127.0.0.1:8000/api + run: | + ./test.sh true + diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e7875f7..a26fad4 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -2,15 +2,13 @@ builds: - env: - - CGO_ENABLED=1 + - CGO_ENABLED=0 goos: - - darwin - dragonfly - freebsd - linux - netbsd - openbsd - # - plan9 - windows goarch: - 386 @@ -25,17 +23,6 @@ builds: - 6 - 7 ignore: - - goos: darwin - goarch: 386 - - goos: darwin - goarch: arm - - goos: darwin - goarch: ppc64 - - goos: darwin - goarch: ppc64le - - goos: darwin - goarch: riscv64 - - goos: dragonfly goarch: 386 - goos: dragonfly