Skip to content

Commit 2894802

Browse files
authored
chore(infra): add CI workflow and fix release engineering (#42)
* chore(infra): add CI workflow, track lockfile, fix release engineering * fix(ci): use --legacy-peer-deps for unresolvable peer dependency * fix(ci): checkout Core repo for test imports Tests import ../../NoJS/src/index.js which doesn't exist in CI. Add a checkout step for ErickXavier/no-js at ../NoJS so the relative path resolves correctly from the test files. * fix(ci): use git clone for Core repo (actions/checkout path restriction)
1 parent aedee78 commit 2894802

7 files changed

Lines changed: 7136 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Clone NoJS Core for tests
17+
run: git clone --depth 1 https://github.com/ErickXavier/no-js.git "$GITHUB_WORKSPACE/../NoJS"
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: npm
23+
24+
- run: npm install --legacy-peer-deps
25+
- run: npm run build
26+
- run: npm test

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Dependencies
22
node_modules/
3-
package-lock.json
43

54
# OS files
65
.DS_Store

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Tests
1010
__tests__/
1111
e2e/
12-
jest.config.js
12+
jest.config.cjs
1313
coverage/
1414

1515
# Build tooling

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ All notable changes to **NoJS Elements** will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased](https://github.com/ErickXavier/nojs-elements/compare/v1.14.1...HEAD)
9+
810
## [1.14.1](https://github.com/ErickXavier/nojs-elements/compare/v1.14.0...v1.14.1) — 2026-06-11
911

1012
### Fixed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# NoJS Elements
22

3+
[![CI](https://github.com/ErickXavier/nojs-elements/actions/workflows/ci.yml/badge.svg)](https://github.com/ErickXavier/nojs-elements/actions/workflows/ci.yml)
34
![version](https://img.shields.io/badge/version-1.14.1-blue)
45
[![jsDelivr hits](https://data.jsdelivr.com/v1/package/gh/erickxavier/nojs-elements/badge)](https://www.jsdelivr.com/package/gh/erickxavier/nojs-elements)
56

0 commit comments

Comments
 (0)