diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f7b20b4..d104f27 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -6,12 +6,20 @@ on: branches: [main] jobs: vet-and-test: - runs-on: nightly + runs-on: ubuntu-latest + env: + GOPROXY: https://goproxy.cn,direct steps: + - name: Configure submodule auth over HTTPS + run: git config --global url."https://weichen:${{ secrets.SUBMODULE_TOKEN }}@git-home.u1680832.nyat.app:30319/".insteadOf "ssh://git@git-ssh.u1680832.nyat.app:31411/" - uses: actions/checkout@v4 with: submodules: recursive - - run: go vet ./... && go test -count=1 ./... + - uses: actions/setup-go@v5 + with: + go-version: "1.27" + - name: Vet, test, and race + run: GOWORK=off go vet ./... && GOWORK=off go test -count=1 ./... && GOWORK=off go test -count=1 -race ./... docker-checkout-hostgateway: runs-on: ubuntu-latest options: --add-host gitea:host-gateway