diff --git a/.agola/config.yml b/.agola/config.yml index 5179e47..3bd39ae 100644 --- a/.agola/config.yml +++ b/.agola/config.yml @@ -1,13 +1,33 @@ version: v0 runs: + - name: Renovate deps + when: + branch: main + tasks: + - name: Run renovate + runtime: + containers: + - image: docker.io/renovate/renovate + environment: + RENOVATE_PLATFORM: gitea + RENOVATE_AUTODISCOVER: 'false' + RENOVATE_ENDPOINT: https://code.icb4dc0.de/api/v1 + LOG_LEVEL: info + RENOVATE_TOKEN: + from_variable: gitea-token + GITHUB_COM_TOKEN: + from_variable: github-token + steps: + - run: + name: Run bot + command: renovate prskr/kreaper - name: Test and lint tasks: - name: Checkout code runtime: - type: pod containers: - - image: docker.io/alpine/git + - image: docker.io/alpine/git steps: - clone: - save_to_workspace: @@ -15,35 +35,31 @@ runs: - source_dir: . dest_dir: . paths: - - '**' + - "**" - name: Run tests runtime: - type: pod - arch: amd64 containers: - - image: docker.io/golang:1.19-bullseye + - image: docker.io/golang:1.19-bullseye environment: GO111MODULE: "on" CGO_ENABLED: "1" steps: - restore_workspace: - dest_dir: . + dest_dir: . - run: - name: Install gotestsum - command: go install gotest.tools/gotestsum@latest + name: Install gotestsum + command: go install gotest.tools/gotestsum@latest - run: - name: Create out directory - command: mkdir -p out + name: Create out directory + command: mkdir -p out - run: - name: Run tests - command: gotestsum -- -coverprofile=out/cover.txt -shuffle=on -race -covermode=atomic ./... + name: Run tests + command: gotestsum -- -coverprofile=out/cover.txt -shuffle=on -race -covermode=atomic ./... depends: - Checkout code - name: Lint code runtime: - type: pod - arch: amd64 containers: - image: docker.io/golangci/golangci-lint environment: @@ -51,9 +67,9 @@ runs: CGO_ENABLED: "0" steps: - restore_workspace: - dest_dir: . + dest_dir: . - run: - name: Run golangci-lint - command: golangci-lint run -v + name: Run golangci-lint + command: golangci-lint run -v depends: - Checkout code diff --git a/.gitignore b/.gitignore index 2860173..7860bed 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,6 @@ .idea/ dist/ -out/ \ No newline at end of file +out/ +.env +.env.* \ No newline at end of file