Skip to content

Commit

Permalink
Create go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mkelcik committed Mar 27, 2024
1 parent 20c0471 commit 219e2ed
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
2 changes: 0 additions & 2 deletions cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ func (c *Cache[K, T]) GCSchedulerStart() {
for {
select {
case <-done:
fmt.Println("gc stop")
return
case <-ticker.C:
fmt.Println("gc tick")
c.GCRun()
}
}
Expand Down

0 comments on commit 219e2ed

Please sign in to comment.