Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/frontend-tests.yml')
-rw-r--r--.github/workflows/frontend-tests.yml76
1 files changed, 76 insertions, 0 deletions
diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml
new file mode 100644
index 0000000000..34cc39d6bd
--- /dev/null
+++ b/.github/workflows/frontend-tests.yml
@@ -0,0 +1,76 @@
+name: Frontend analysis and tests
+
+on:
+ push:
+ pull_request:
+ paths:
+ - 'js/**'
+ - '**.s?css'
+ - 'test/javascript/**'
+ - '.browserslistrc'
+ - '.eslint*'
+ - '*.cjs'
+ - 'package.json'
+ - 'tsconfig.json'
+ - 'yarn.lock'
+
+permissions:
+ contents: read
+
+jobs:
+ javascript-test:
+ name: Test JavaScript files
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+
+ - name: Set up Node
+ uses: actions/setup-node@v3
+ with:
+ node-version: '14'
+ cache: 'yarn'
+
+ - name: Install modules
+ run: yarn install --non-interactive
+
+ - name: Run tests
+ run: yarn test
+
+ javascript-lint:
+ name: Lint JavaScript files
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+
+ - name: Set up Node
+ uses: actions/setup-node@v3
+ with:
+ node-version: '14'
+ cache: 'yarn'
+
+ - name: Install modules
+ run: yarn install --non-interactive
+
+ - name: Lint JavaScript files
+ run: yarn run js-lint --quiet
+
+ css-lint:
+ name: Lint CSS files
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+
+ - name: Set up Node
+ uses: actions/setup-node@v3
+ with:
+ node-version: '14'
+ cache: 'yarn'
+
+ - name: Install modules
+ run: yarn install --non-interactive
+
+ - name: Lint CSS files
+ run: yarn run css-lint