Skip to content

Commit 82a927b

Browse files
committed
ci(github): add test workflow
1 parent 77a280d commit 82a927b

File tree

8 files changed

+45
-19
lines changed

8 files changed

+45
-19
lines changed

.babelrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ end_of_line = lf
88
insert_final_newline = true
99
charset = utf-8
1010

11-
[*.{js,json}]
11+
[*.{yml,js,json}]
1212
indent_size = 2
1313
indent_style = space

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
### Describe the bug

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,22 @@ about: Suggest an idea for this project
44
title: 'Feature: '
55
labels: feature
66
assignees: ''
7-
87
---
98

109
Before submitting a feature request, please check [existing feature requests](https://github.com/timmywil/panzoom/issues?q=label%3A%22votes+needed%22+sort%3Areactions-%2B1-desc) and add your :+1: reaction if your feature exists.
1110

1211
**What problem does this feature solve?**
12+
1313
<!-- A clear and concise description of what the problem is. -->
1414

1515
**Describe the solution you'd like**
16+
1617
<!-- A clear and concise description of what you want to happen. -->
1718

1819
**Describe alternatives you've considered**
20+
1921
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
2022

2123
**Additional context**
24+
2225
<!-- Add any other context, screenshots, or JSBin example (use https://jsbin.com/dibofogini/1/edit?html,js,output as a base) about the feature request here. -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Please review the [guidelines for contributing](CONTRIBUTING.md) to this repository.
44

5-
- [ ] I am requesting to **pull a topic/feature/bugfix branch** (right side). In other words, not *main*.
5+
- [ ] I am requesting to **pull a topic/feature/bugfix branch** (right side). In other words, not _main_.
66
- [ ] I have run `npm test` against my changes and tests pass.
77
- [ ] I have added tests to prove my fix is effective or my feature works. This can be done in the form of unit tests in `test/unit/` or a new or altered demo in `demo/`.
88
- [ ] I have added or edited necessary types and generated documentation (`npm run docs`), or no docs changes are needed.

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Panzoom Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
env:
10+
NODE_VERSION: 22.x
11+
12+
jobs:
13+
build-and-test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
with:
19+
submodules: recursive
20+
21+
- name: Use Node.js ${{ env.NODE_VERSION }}
22+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
23+
with:
24+
node-version: ${{ env.NODE_VERSION }}
25+
26+
- name: Cache
27+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
28+
with:
29+
path: ~/.npm
30+
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
31+
restore-keys: |
32+
${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-
33+
34+
- name: Install dependencies
35+
run: npm install
36+
37+
- name: Run tests
38+
run: npm test

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package-lock.json
33
node_modules/**
44
coverage/**
55
.git/**
6-
.*
76
docs/**
87
*.d.ts
98
dist/**
9+
/.babelrc

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@
4747
"email": "timmywil@users.noreply.github.com"
4848
},
4949
"devDependencies": {
50-
"@babel/core": "^7.26.0",
51-
"@babel/preset-env": "^7.26.0",
5250
"@commitlint/cli": "^19.6.1",
5351
"@commitlint/config-conventional": "^19.6.0",
5452
"@release-it/bumper": "7.0.0",

0 commit comments

Comments
 (0)