Update po files
[phpmyadmin.git] / .github / workflows / frontend-tests.yml
bloba27cccb41701c66227f84b1740bf3ef07a83703a
1 name: Frontend analysis and tests
3 on:
4   push:
5   pull_request:
6     paths:
7       - 'resources/js/**'
8       - '**.s?css'
9       - 'tests/javascript/**'
10       - '.browserslistrc'
11       - '.eslint*'
12       - '*.cjs'
13       - 'package.json'
14       - 'tsconfig.json'
15       - 'yarn.lock'
17 permissions:
18   contents: read
20 jobs:
21   javascript-test:
22     name: Test JavaScript files
23     runs-on: ubuntu-latest
24     steps:
25       - name: Checkout code
26         uses: actions/checkout@v4
28       - name: Set up Node
29         uses: actions/setup-node@v4
30         with:
31           node-version: '16'
32           cache: 'yarn'
34       - name: Install modules
35         run: yarn install --non-interactive
37       - name: Run tests
38         run: yarn test
40   javascript-lint:
41     name: Lint JavaScript files
42     runs-on: ubuntu-latest
43     steps:
44       - name: Checkout code
45         uses: actions/checkout@v4
47       - name: Set up Node
48         uses: actions/setup-node@v4
49         with:
50           node-version: '16'
51           cache: 'yarn'
53       - name: Install modules
54         run: yarn install --non-interactive
56       - name: Lint JavaScript files
57         run: yarn run js-lint --quiet
59   css-lint:
60     name: Lint CSS files
61     runs-on: ubuntu-latest
62     steps:
63       - name: Checkout code
64         uses: actions/checkout@v4
66       - name: Set up Node
67         uses: actions/setup-node@v4
68         with:
69           node-version: '16'
70           cache: 'yarn'
72       - name: Install modules
73         run: yarn install --non-interactive
75       - name: Lint CSS files
76         run: yarn run css-lint