nginx-config/.github/workflows/test-workflow.yml
ai-team 4eaa57098c
Some checks failed
Deploy to DigitalOcean Spaces / build (push) Failing after 0s
Test commit or pull request / eslint (push) Failing after 0s
Test commit or pull request / stylelint (push) Failing after 1s
Test commit or pull request / i18n-packs (push) Failing after 0s
Test commit or pull request / prettier (push) Failing after 0s
Test and deploy to GitHub Pages / build (push) Failing after 9s
Initial import from digitalocean/nginxconfig.io
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-12 18:35:13 +08:00

80 lines
1.5 KiB
YAML

name: Test commit or pull request
on: [push, pull_request]
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
- name: Install dependencies
run: npm ci
- name: Test with eslint
run: npm run test:eslint
stylelint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
- name: Install dependencies
run: npm ci
- name: Test with stylelint
run: npm run test:stylelint
i18n-packs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
- name: Install dependencies
run: npm ci
- name: Test i18n packs integrity
run: npm run test:i18n-packs
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
- name: Install dependencies
run: npm ci
- name: Test with prettier
run: npm run test:prettier