mirror of
https://github.com/kairos-io/kcrypt.git
synced 2025-09-17 15:49:39 +00:00
Add lint workflow
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
28
.github/workflows/lint.yaml
vendored
Normal file
28
.github/workflows/lint.yaml
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: Lint
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '**'
|
||||||
|
env:
|
||||||
|
FORCE_COLOR: 1
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Install Go
|
||||||
|
uses: actions/setup-go@v4
|
||||||
|
- name: Install earthly
|
||||||
|
uses: Luet-lab/luet-install-action@v1
|
||||||
|
with:
|
||||||
|
repository: quay.io/kairos/packages
|
||||||
|
packages: utils/earthly
|
||||||
|
- name: Run Lint checks
|
||||||
|
run: |
|
||||||
|
earthly +lint
|
@@ -67,6 +67,10 @@ iso:
|
|||||||
SAVE ARTIFACT /build/$ISO_NAME.iso iso AS LOCAL build/$ISO_NAME.iso
|
SAVE ARTIFACT /build/$ISO_NAME.iso iso AS LOCAL build/$ISO_NAME.iso
|
||||||
SAVE ARTIFACT /build/$ISO_NAME.iso.sha256 sha256 AS LOCAL build/$ISO_NAME.iso.sha256
|
SAVE ARTIFACT /build/$ISO_NAME.iso.sha256 sha256 AS LOCAL build/$ISO_NAME.iso.sha256
|
||||||
|
|
||||||
|
lint:
|
||||||
|
BUILD +golint
|
||||||
|
BUILD +yamllint
|
||||||
|
|
||||||
golint:
|
golint:
|
||||||
ARG GO_VERSION
|
ARG GO_VERSION
|
||||||
FROM golang:$GO_VERSION
|
FROM golang:$GO_VERSION
|
||||||
|
Reference in New Issue
Block a user