Skip to content

Commit

Permalink
update frames
Browse files Browse the repository at this point in the history
  • Loading branch information
koron committed Apr 16, 2024
1 parent 5a96805 commit 7aa6d8c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Go

on: [push]

env:
GO_VERSION: '>=1.21.0'

jobs:

build:
Expand All @@ -13,11 +16,11 @@ jobs:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:

- uses: actions/setup-go@v3
with:
go-version: 1.x
- uses: actions/checkout@v4

- uses: actions/checkout@v3
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

- run: go test

Expand Down
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
TEST_PACKAGE ?= ./...

.PHONY: build
build:
go build -gcflags '-e'

.PHONY: test
test:
go test -gcflags '-e' ./...
go test $(TEST_PACKAGE)

.PHONY: bench
bench:
go test -bench .
go test -bench $(TEST_PACKAGE)

.PHONY: tags
tags:
Expand All @@ -17,19 +19,19 @@ tags:
.PHONY: cover
cover:
mkdir -p tmp
go test -coverprofile tmp/_cover.out ./...
go test -coverprofile tmp/_cover.out $(TEST_PACKAGE)
go tool cover -html tmp/_cover.out -o tmp/cover.html

.PHONY: checkall
checkall: vet staticcheck

.PHONY: vet
vet:
go vet ./...
go vet $(TEST_PACKAGE)

.PHONY: staticcheck
staticcheck:
staticcheck ./...
staticcheck $(TEST_PACKAGE)

.PHONY: clean
clean:
Expand Down

0 comments on commit 7aa6d8c

Please sign in to comment.