From ca12fe8c95194b1b0f475c312b353f8258af4441 Mon Sep 17 00:00:00 2001 From: Loic Devulder Date: Fri, 21 Jul 2023 15:03:53 +0200 Subject: [PATCH] ci: add golangci-lint check Signed-off-by: Loic Devulder --- .github/workflows/lint.yaml | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 000000000..6d227f173 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,46 @@ +name: Lint + +on: + pull_request: + push: + branches: + - main + tags: + - 'v*' + +jobs: + golang-lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Install Go + uses: actions/setup-go@v3 + with: + go-version-file: tests/go.mod + - name: Analysis + uses: golangci/golangci-lint-action@v3 + with: + args: -v + working-directory: tests + cypress-lint: + runs-on: ubuntu-latest + env: + NODE_VERSION: current + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: ${{ env.NODE_VERSION }} + cache: npm + - name: Install npm + run: | + npm ci + npm ls --depth=0 + - name: Analysis + uses: sibiraj-s/action-eslint@v3 + with: + working-dir: tests/cypress/latest + #extensions: 'js,ts' \ No newline at end of file