mirror of
https://github.com/Luzifer/go-dhparam.git
synced 2024-12-29 23:41:17 +00:00
Add Github Actions for testing
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
d806505a49
commit
a984299b4e
1 changed files with 36 additions and 0 deletions
36
.github/workflows/test.yaml
vendored
Normal file
36
.github/workflows/test.yaml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
name: test
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
version:
|
||||||
|
- '1.19-alpine'
|
||||||
|
- '1.20-alpine'
|
||||||
|
- alpine
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: sh
|
||||||
|
|
||||||
|
container:
|
||||||
|
image: golang:${{ matrix.version }}
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOPATH: /go
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: go test
|
||||||
|
run: |
|
||||||
|
apk --no-cache add openssl && \
|
||||||
|
go test -v -cover
|
||||||
|
|
||||||
|
...
|
Loading…
Reference in a new issue