-
Notifications
You must be signed in to change notification settings - Fork 151
38 lines (36 loc) · 1.05 KB
/
Copy pathautomated-tests.yaml
File metadata and controls
38 lines (36 loc) · 1.05 KB
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
name: Automated Tests
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
permissions:
contents: read
jobs:
code-quality:
runs-on: ubuntu-slim
timeout-minutes: 10
steps:
- run: "echo '🚀 Starting code quality checks for ${{ github.repository }} (ref: ${{ github.ref }})'"
- name: Check out repository code
uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: lts/*
cache: npm
- name: Install dependencies
run: npm ci
- name: Check spelling
run: node --run test:spelling
- name: Check linting
run: node --run lint
- name: Run unit tests
run: node --run test:unit
- name: Run integration tests
run: node --run test:integration
- name: Run DOM tests
run: node --run test:dom
- name: Check test coverage
run: node --run test:coverage
- run: "echo '✨ Code quality checks completed with status: ${{ job.status }}.'"