Skip to content

Commit caa42be

Browse files
authored
Ensuring only top-level dist and node_modules directories are ignored, as directories with that name could be used for testing, and added a workflow for testing
1 parent d4d7eca commit caa42be

File tree

4 files changed

+34
-2
lines changed

4 files changed

+34
-2
lines changed

.github/workflows/ci.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build & Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Build & Test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: "18"
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Build
25+
run: npm run compile
26+
27+
- name: Test
28+
run: npm run test

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
.Trashes
1111
Thumbs.db
1212

13-
dist
14-
node_modules
13+
/dist
14+
/node_modules

test/__fixtures__/with-node-modules/nested/node_modules/node-module.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/__fixtures__/with-node-modules/node_modules/node-module.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)