mirror of
https://github.com/zc2638/drone-k8s-plugin.git
synced 2026-06-14 05:12:24 +08:00
32 lines
555 B
YAML
32 lines
555 B
YAML
name: Main CI WorkFlow
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
pull_request:
|
|
|
|
env:
|
|
GO_VERSION: '1.19'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Install Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Dependencies
|
|
run: go get -v -t -d ./...
|
|
|
|
- name: Lint
|
|
uses: golangci/golangci-lint-action@v3
|
|
with:
|
|
version: latest
|
|
args: --timeout=10m
|