-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (34 loc) · 1008 Bytes
/
e2e.test.lint.yml
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
name: e2e:test:lint code with defined linters
on: [push,pull_request_target]
jobs:
files-changed:
name: Detect File Changes
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.changes.outputs.e2e-all }}
steps:
- uses: actions/checkout@master
- name: Check for frontend file changes
uses: dorny/paths-filter@v3.0.2
id: changes
with:
token: ${{ github.token }}
filters: .github/file-filters.yml
list-files: shell
lint:
if: needs.files-changed.outputs.changes == 'true'
name: Lint - E2E files
needs: files-changed
runs-on: ubuntu-latest
env:
WORKING_DIRECTORY: ./tests
steps:
- name: Set Node version
uses: actions/setup-node@v4
with:
node-version: '>=21'
- name: Checkout code
uses: actions/checkout@master
- name: E2E files | Lint
run: npm install && npm run test:lint
working-directory: ${{env.WORKING_DIRECTORY}}