Skip to content

Commit 1d43bd8

Browse files
CopilotGochoMugo
andauthored
Add CI workflow for automated testing (#4)
* Initial plan * Add GitHub workflow for running tests Co-authored-by: GochoMugo <[email protected]> * Add explicit permissions to test workflow for security Co-authored-by: GochoMugo <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: GochoMugo <[email protected]>
1 parent 6953e48 commit 1d43bd8

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: "22"
21+
cache: "npm"
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Run tests
27+
run: npm test

0 commit comments

Comments
 (0)