mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-12-19 06:58:15 +08:00
40 lines
808 B
YAML
40 lines
808 B
YAML
name: Continuous Integration
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
name: Code style and tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: npm
|
|
|
|
- name: 📦 Install dependencies
|
|
run: npm ci
|
|
|
|
- name: 🧪 Run all tests
|
|
run: npm run test
|
|
|
|
- name: 💄 Code style
|
|
run: npm run check-style
|
|
|
|
codespell:
|
|
name: Check for spelling errors
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: codespell-project/actions-codespell@master
|
|
with:
|
|
# file types to ignore
|
|
skip: "*.json,*.yml,DIRECTORY.md"
|
|
ignore_words_list: "ba,esy,yse,falsy"
|