tests/thirdparty: add github.com/klauspost/compress/huff0 (#422)
Add the `huff0` package from the `github.com/klauspost/compress` module to the third-party test suite. https://github.com/klauspost/compress/tree/v1.17.5/huff0/_generate Upgrade the version of `github.com/klauspost/compress` under test to `v1.17.5`. Closes #421
This commit is contained in:
committed by
GitHub
parent
35f8322d68
commit
63eff7ea42
39
.github/workflows/packages.yml
vendored
39
.github/workflows/packages.yml
vendored
@@ -284,6 +284,41 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
working-directory: wyhash
|
working-directory: wyhash
|
||||||
run: go test ./...
|
run: go test ./...
|
||||||
|
klauspost-compress-huff0:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Install Go
|
||||||
|
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
|
||||||
|
with:
|
||||||
|
go-version: 1.21.x
|
||||||
|
check-latest: true
|
||||||
|
- name: Checkout avo
|
||||||
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
|
with:
|
||||||
|
path: avo
|
||||||
|
persist-credentials: false
|
||||||
|
- name: Checkout klauspost/compress
|
||||||
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
|
with:
|
||||||
|
repository: klauspost/compress
|
||||||
|
ref: v1.17.5
|
||||||
|
path: compress
|
||||||
|
persist-credentials: false
|
||||||
|
- name: Avo Module Replacement
|
||||||
|
working-directory: compress/huff0/_generate
|
||||||
|
run: |
|
||||||
|
go mod edit -modfile=go.mod -require=github.com/mmcloughlin/avo@v0.0.0-00010101000000-000000000000
|
||||||
|
go mod edit -modfile=go.mod -replace=github.com/mmcloughlin/avo=${{ github.workspace }}/avo
|
||||||
|
go mod tidy -modfile=go.mod
|
||||||
|
- name: Generate
|
||||||
|
working-directory: compress/huff0/_generate
|
||||||
|
run: go generate -v -x
|
||||||
|
- name: Diff
|
||||||
|
working-directory: compress/huff0
|
||||||
|
run: git diff
|
||||||
|
- name: Test
|
||||||
|
working-directory: compress/huff0
|
||||||
|
run: go test ./...
|
||||||
klauspost-compress-s2:
|
klauspost-compress-s2:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -301,7 +336,7 @@ jobs:
|
|||||||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
repository: klauspost/compress
|
repository: klauspost/compress
|
||||||
ref: 2f236383d7c2faa8ef7e354ccecb926a5b47a24d
|
ref: v1.17.5
|
||||||
path: compress
|
path: compress
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Avo Module Replacement
|
- name: Avo Module Replacement
|
||||||
@@ -336,7 +371,7 @@ jobs:
|
|||||||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
repository: klauspost/compress
|
repository: klauspost/compress
|
||||||
ref: 2f236383d7c2faa8ef7e354ccecb926a5b47a24d
|
ref: v1.17.5
|
||||||
path: compress
|
path: compress
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Avo Module Replacement
|
- name: Avo Module Replacement
|
||||||
|
|||||||
14
tests/thirdparty/suite.json
vendored
14
tests/thirdparty/suite.json
vendored
@@ -233,8 +233,20 @@
|
|||||||
"stars": 4332
|
"stars": 4332
|
||||||
},
|
},
|
||||||
"default_branch": "master",
|
"default_branch": "master",
|
||||||
"version": "2f236383d7c2faa8ef7e354ccecb926a5b47a24d",
|
"version": "v1.17.5",
|
||||||
"packages": [
|
"packages": [
|
||||||
|
{
|
||||||
|
"pkg": "huff0",
|
||||||
|
"module": "_generate/go.mod",
|
||||||
|
"generate": [
|
||||||
|
{
|
||||||
|
"dir": "_generate",
|
||||||
|
"commands": [
|
||||||
|
"go generate -v -x"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"pkg": "s2",
|
"pkg": "s2",
|
||||||
"module": "_generate/go.mod",
|
"module": "_generate/go.mod",
|
||||||
|
|||||||
Reference in New Issue
Block a user