mirror of
https://github.com/portainer/portainer.git
synced 2025-08-10 00:05:24 +02:00
Some checks are pending
ci / build_images (map[arch:amd64 platform:linux]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
ci / build_images (map[arch:arm64 platform:linux]) (push) Waiting to run
ci / build_manifests (push) Blocked by required conditions
/ triage (push) Waiting to run
Lint / Run linters (push) Waiting to run
Test / test-client (push) Waiting to run
Test / test-server (map[arch:amd64 platform:linux]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
Test / test-server (map[arch:arm64 platform:linux]) (push) Waiting to run
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
- release/*
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- develop
|
|
- release/*
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
- ready_for_review
|
|
|
|
env:
|
|
GO_VERSION: 1.21.6
|
|
NODE_VERSION: 18.x
|
|
|
|
jobs:
|
|
run-linters:
|
|
name: Run linters
|
|
runs-on: ubuntu-latest
|
|
if: github.event.pull_request.draft == false
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
cache: 'yarn'
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- run: yarn --frozen-lockfile
|
|
- name: Run linters
|
|
uses: wearerequired/lint-action@v1
|
|
with:
|
|
eslint: true
|
|
eslint_extensions: ts,tsx,js,jsx
|
|
prettier: true
|
|
prettier_dir: app/
|
|
gofmt: true
|
|
gofmt_dir: api/
|
|
- name: Typecheck
|
|
uses: icrawl/action-tsc@v1
|
|
- name: GolangCI-Lint
|
|
uses: golangci/golangci-lint-action@v3
|
|
with:
|
|
version: v1.55.2
|
|
args: --timeout=10m -c .golangci.yaml
|