9
.github/workflows/check/Dockerfile
vendored
Normal file
9
.github/workflows/check/Dockerfile
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM golangci/golangci-lint:v1.23.6
|
||||
|
||||
RUN apt-get install git
|
||||
|
||||
COPY "entrypoint.sh" "/entrypoint.sh"
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENV GOFLAGS -mod=vendor
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
8
.github/workflows/check/action.yml
vendored
Normal file
8
.github/workflows/check/action.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
name: Check
|
||||
description: Run static analysis and unit tests
|
||||
branding:
|
||||
icon: check-circle
|
||||
color: green
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
4
.github/workflows/check/entrypoint.sh
vendored
Normal file
4
.github/workflows/check/entrypoint.sh
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
golangci-lint run
|
||||
go test -cover -short ./...
|
Reference in New Issue
Block a user