Skip to content

Commit 0a62e0b

Browse files
Add GitHub workflow
1 parent f62afcc commit 0a62e0b

File tree

4 files changed

+4142
-2
lines changed

4 files changed

+4142
-2
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Automated Tests
2+
on:
3+
push:
4+
branches: [master, develop]
5+
pull_request:
6+
branches: [master, develop]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
run-lint:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 30
15+
steps:
16+
- run: echo "Starting automated tests for ${{ github.repository }} on ${{ github.ref }}"
17+
- name: Check out repository code
18+
uses: actions/checkout@v4
19+
- name: Use Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
cache: npm
24+
- name: Install dependencies
25+
run: npm ci
26+
- name: Check spelling
27+
run: npm run test:spelling
28+
- name: Check linting
29+
run: npm run lint
30+
- run: echo "Test job status is ${{ job.status }}."

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,4 @@ node_modules
3535
# Default settings
3636
settings.json
3737

38-
# Package Lock File
39-
package-lock.json
4038

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
1111

1212
- Added a spell checker and fixed problems that were found (#308).
1313
- Added JavaScript linting (for the start with soft rules).
14+
- Added GitHub workflow for linting and spell checking on every push and pull request.
1415

1516
## [2.4.0] - 2024-10-08
1617

0 commit comments

Comments
 (0)