Skip to content

Commit

Permalink
tests/thirdparty: add github.com/klauspost/compress/huff0 (#422)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mmcloughlin authored Jan 27, 2024
1 parent 35f8322 commit 63eff7e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 3 deletions.
39 changes: 37 additions & 2 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,41 @@ jobs:
- name: Test
working-directory: wyhash
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/[email protected]
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:
runs-on: ubuntu-latest
steps:
Expand All @@ -301,7 +336,7 @@ jobs:
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
repository: klauspost/compress
ref: 2f236383d7c2faa8ef7e354ccecb926a5b47a24d
ref: v1.17.5
path: compress
persist-credentials: false
- name: Avo Module Replacement
Expand Down Expand Up @@ -336,7 +371,7 @@ jobs:
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
repository: klauspost/compress
ref: 2f236383d7c2faa8ef7e354ccecb926a5b47a24d
ref: v1.17.5
path: compress
persist-credentials: false
- name: Avo Module Replacement
Expand Down
14 changes: 13 additions & 1 deletion tests/thirdparty/suite.json
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,20 @@
"stars": 4332
},
"default_branch": "master",
"version": "2f236383d7c2faa8ef7e354ccecb926a5b47a24d",
"version": "v1.17.5",
"packages": [
{
"pkg": "huff0",
"module": "_generate/go.mod",
"generate": [
{
"dir": "_generate",
"commands": [
"go generate -v -x"
]
}
]
},
{
"pkg": "s2",
"module": "_generate/go.mod",
Expand Down

0 comments on commit 63eff7e

Please sign in to comment.