Skip to content

OAuth account updates (#8513) #648

OAuth account updates (#8513)

OAuth account updates (#8513) #648

Workflow file for this run

name: Go CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Verify Go version
run: go version
- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/Library/Caches/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Install dependencies
run: go mod download
- name: Run gofmt
run: |
UNFORMATTED=$(gofmt -l .)
if [[ -n "$UNFORMATTED" ]]; then
echo "Files not formatted:"
echo "$UNFORMATTED"
exit 1
fi
- name: Run tests
run: CGO_ENABLED=1 go test -v -tags with_clash_api,with_conntrack ./...