10 Commits

Author SHA1 Message Date
cb29c4e906 feat: run ci pipeline on merge to main 2024-04-01 15:12:38 +02:00
e27008ecb1 Revert "refactor: add sharable action to setup go"
All checks were successful
CI / test (pull_request) Successful in 18m48s
This reverts commit 07412bf6c6.
2024-04-01 14:52:28 +02:00
07412bf6c6 refactor: add sharable action to setup go
Some checks failed
CI / test (pull_request) Failing after 3s
2024-04-01 14:50:53 +02:00
ffa8e73d53 Revert "feat: add lint step"
All checks were successful
CI / test (pull_request) Successful in 19m19s
This reverts commit e9d8e07b37.
2024-04-01 14:05:28 +02:00
e9d8e07b37 feat: add lint step
Some checks failed
CI / test (pull_request) Failing after 19m35s
2024-04-01 13:44:56 +02:00
cc11e111e2 fix: add RUNNER_TOOL_CACHE
All checks were successful
CI / test (pull_request) Successful in 18m45s
2024-04-01 13:01:38 +02:00
fea5dd02eb feat: add cache restor key
Some checks failed
CI / check and test (pull_request) Has been cancelled
2024-04-01 13:00:07 +02:00
26f9c2b111 fix: add name to cache key generation 2024-04-01 12:54:42 +02:00
6e30e407ca fix: only run CI pipeline on pull_request
Some checks failed
CI / check and test (pull_request) Has been cancelled
2024-04-01 12:01:08 +02:00
b72b89db03 feat: add CI pipeline
All checks were successful
CI / check and test (push) Successful in 18m35s
CI / check and test (pull_request) Successful in 18m36s
2024-04-01 11:52:01 +02:00

45
.gitea/workflows/ci.yaml Normal file
View File

@@ -0,0 +1,45 @@
name: CI
on:
- pull_request
- push:
branches:
- main
env:
GOPATH: /go_path
GOCACHE: /go_cache
RUNNER_TOOL_CACHE: /toolcache
jobs:
testing:
name: test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- name: Create cache key
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
id: hash-go
with:
patterns: |
go.mod
go.sum
- name: cache go
id: cache-go
uses: actions/cache@v4
with:
path: |
/go_path
/go_cache
key: go_path-${{ steps.hash-go.outputs.hash }}
restore-keys: |-
go_cache-${{ steps.hash-go.outputs.hash }}
- name: build
run: make build
- name: test
run: make test