Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for tests #34

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
create:
tags:
- v*
pull_request:
branches:
- "main"

permissions:
contents: write
Expand Down Expand Up @@ -38,3 +41,21 @@ jobs:
files: |
dist/**/*.tar.gz
dist/**/*.tar.gz.sha256sum

test:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Install dependency for linix-amd64 dist
run: sudo apt-get install -y apt-utils libbtrfs-dev file

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22"

- name: Setup Task
uses: arduino/setup-task@v2

- name: Run testss
run: task test
10 changes: 10 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ tasks:
GOOS: "{{ .targetOS }}"
GOARCH: "{{ .targetArch }}"

_test:go:
internal: true
cmds:
- go test -tags="{{ .goTags }}" ./...

build:
desc: Build d8 binary for personal usage
run: once
Expand Down Expand Up @@ -234,6 +239,11 @@ tasks:
- task: package:dist:all
- task: checksum

test:
desc: Run go test for current project
cmds:
- task: _test:go

clean:
desc: Clean all binaries
cmds:
Expand Down
Loading