tests/thirdparty: add segmentio/asm (#201)
Adds third-party test for https://github.com/segmentio/asm. Fixes #200
This commit is contained in:
committed by
GitHub
parent
8ff8e3b751
commit
5e686673b2
34
.github/workflows/packages.yml
vendored
34
.github/workflows/packages.yml
vendored
@@ -556,3 +556,37 @@ jobs:
|
||||
- name: Test
|
||||
working-directory: us/merkle/blake2b
|
||||
run: go test ./...
|
||||
segmentio-asm:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@37335c7bb261b353407cff977110895fa0b4f7d8 # v2.1.3
|
||||
with:
|
||||
go-version: 1.17.x
|
||||
- name: Checkout avo
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
with:
|
||||
path: avo
|
||||
persist-credentials: false
|
||||
- name: Checkout segmentio/asm
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
with:
|
||||
repository: segmentio/asm
|
||||
ref: v1.0.0
|
||||
path: asm
|
||||
persist-credentials: false
|
||||
- name: Avo Module Replacement
|
||||
working-directory: asm/build
|
||||
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: asm
|
||||
run: make --always-make build
|
||||
- name: Diff
|
||||
working-directory: asm
|
||||
run: git diff
|
||||
- name: Test
|
||||
working-directory: asm
|
||||
run: go test ./...
|
||||
|
||||
15
tests/thirdparty/packages.json
vendored
15
tests/thirdparty/packages.json
vendored
@@ -367,5 +367,20 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"repository": {
|
||||
"owner": "segmentio",
|
||||
"name": "asm"
|
||||
},
|
||||
"version": "v1.0.0",
|
||||
"module": "build/go.mod",
|
||||
"generate": [
|
||||
{
|
||||
"commands": [
|
||||
"make --always-make build"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user