Skip to content
Merged
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
26 changes: 26 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,26 @@ jobs:
files: |
dist/**/*.tar.gz
dist/**/*.tar.gz.sha256sum

test:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # To use `git describe --tags`

- 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="{{ .cgoTags }}" ./...

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