Skip to content

Merge pull request #140 from SaveTheRbtz/rbtz/splitPackages #18

Merge pull request #140 from SaveTheRbtz/rbtz/splitPackages

Merge pull request #140 from SaveTheRbtz/rbtz/splitPackages #18

Workflow file for this run

name: go
on:
push:
branches: ['*']
tags: ['v*']
pull_request:
branches: ['*']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.22']
dir: ['pkg', 'cmd/zstdseek']
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: go.sum
- name: Display Go version
run: go version
- name: Install dependencies (${{ matrix.dir }})
working-directory: ./${{ matrix.dir }}
run: |
go get .
- name: Build (${{ matrix.dir }})
working-directory: ./${{ matrix.dir }}
run: go build -v ./...
- name: Test (${{ matrix.dir }})
working-directory: ./${{ matrix.dir }}
run: go test -v ./...