Skip to content

Commit cad1456

Browse files
authored
chore(ci): add base script for building and testing (#43)
* chore(ci): add base script for building and testing * fix(ci): tentative workaround for the NPM problem * attempt to fix with Node upgrade * tentative fix to the build problem * regenerate package lock file * chore: remove outdated comment and inconsistency
1 parent e869ceb commit cad1456

File tree

4 files changed

+4052
-2192
lines changed

4 files changed

+4052
-2192
lines changed

.github/workflows/buildTest.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Carbon React Router starter template CI
2+
3+
on: [push]
4+
5+
jobs:
6+
run-defined-frontend-tests:
7+
runs-on: ubuntu-latest
8+
defaults:
9+
run:
10+
working-directory: .
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Read .nvmrc
14+
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
15+
id: nvm
16+
- name: Use Node.js ${{ steps.nvm.outputs.NODE_VERSION }}
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}
20+
- run: npm ci
21+
- run: npm run build
22+
- run: npm run test

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.19.2
1+
24.4.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ It is intended to be helping, not dictating. If you don't know exactly what to u
99
## Get started
1010

1111
1. Clone this template
12-
1. Install the dependencies. _Requires Node 20_
12+
1. Install the dependencies. _Requires Node 24_
1313
```
1414
nvm i # Optional, but desirable to make sure you have the supported version
1515
npm i

0 commit comments

Comments
 (0)