tests/thirdparty: add segmentio/asm (#201)

Adds third-party test for https://github.com/segmentio/asm.

Fixes #200
This commit is contained in:
Michael McLoughlin
2021-09-15 23:49:08 -07:00
committed by GitHub
parent 8ff8e3b751
commit 5e686673b2
2 changed files with 49 additions and 0 deletions

View File

@@ -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 ./...

View File

@@ -367,5 +367,20 @@
]
}
]
},
{
"repository": {
"owner": "segmentio",
"name": "asm"
},
"version": "v1.0.0",
"module": "build/go.mod",
"generate": [
{
"commands": [
"make --always-make build"
]
}
]
}
]