diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..a97c3db --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,30 @@ +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 + with: + go-version: ^1.18 + - 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 diff --git a/Earthfile b/Earthfile index 96f9211..60a0f1b 100644 --- a/Earthfile +++ b/Earthfile @@ -113,6 +113,10 @@ e2e-tests: RUN ./scripts/e2e-tests.sh END + +lint: + BUILD +yamllint + yamllint: FROM cytopia/yamllint COPY . .