-
Notifications
You must be signed in to change notification settings - Fork 39
53 lines (45 loc) · 1.03 KB
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Lint
on:
pull_request:
push:
branches:
- main
tags:
- 'v*'
jobs:
golang-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
cache-dependency-path: tests/go.sum
go-version-file: tests/go.mod
- name: Analysis
uses: golangci/golangci-lint-action@v4
with:
args: -v
working-directory: tests
cypress-lint:
runs-on: ubuntu-latest
env:
NODE_VERSION: current
WORKING_DIR: tests/cypress/latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install npm
run: |
cd ${{ env.WORKING_DIR }}
npm install --save-dev
npm ls --depth=0
- name: Analysis
run: |
cd ${{ env.WORKING_DIR }}
npm run lint