Skip to content

Commit 7b19dda

Browse files
committed
ci: verify mmdb file after build
1 parent cb0d4ef commit 7b19dda

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ jobs:
4040
run: |
4141
go run .
4242
43+
- name: Verify mmdb files
44+
run: |
45+
cd ./output/maxmind || exit 1
46+
go install -v github.com/maxmind/mmdbverify@latest
47+
for name in $(ls *.mmdb); do
48+
$(go env GOPATH)/bin/mmdbverify -file ${name}
49+
done
50+
4351
- name: Generate sha256 checksum for mmdb files
4452
run: |
4553
cd ./output/maxmind || exit 1

0 commit comments

Comments
 (0)