diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index ae5ed8b..5419494 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -10,16 +10,12 @@ jobs: test: name: Test runs-on: ubuntu-latest + container: golang:1.24.2-alpine steps: - name: Checkout code uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.24.2' - - name: Download dependencies run: go mod download @@ -29,16 +25,12 @@ jobs: build: name: Build runs-on: ubuntu-latest + container: golang:1.24.2-alpine steps: - name: Checkout code uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.24.2' - - name: Download dependencies run: go mod download @@ -50,18 +42,18 @@ jobs: lint: name: Lint runs-on: ubuntu-latest + container: golang:1.24.2-alpine steps: + - name: Install git + run: apk add --no-cache git + - name: Checkout code uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.24.2' + - name: Install golangci-lint + run: | + wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.0 - name: Run golangci-lint - uses: golangci/golangci-lint-action@v6 - with: - version: latest - args: --timeout=2m \ No newline at end of file + run: $(go env GOPATH)/bin/golangci-lint run --timeout=2m \ No newline at end of file