Skip to content

Commit

Permalink
ci: add golangci-lint check
Browse files Browse the repository at this point in the history
Signed-off-by: Loic Devulder <[email protected]>
  • Loading branch information
ldevulder committed Jul 21, 2023
1 parent b3c995c commit ca12fe8
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit ca12fe8

Please sign in to comment.