Skip to content

Commit 7da01a8

Browse files
tstikvoortdjohalo2
andauthored
Add Github action for building, linting and testing (#37)
* add CI script * fix linting * add comment about tests * lint all files in src folder * also build typescript for all commits * fix typescript errors * cleanup * fix root page slug bug in parent input * Fix typo in build lint test yml * Remove commented code * Run build last in gha --------- Co-authored-by: djohalo2 <djovanni@q42.nl>
1 parent dedf747 commit 7da01a8

File tree

17 files changed

+340
-313
lines changed

17 files changed

+340
-313
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build, lint, and test
2+
3+
on: [push]
4+
5+
jobs:
6+
build-and-test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- name: Set up Node.js
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version-file: 'package.json'
15+
cache: 'npm'
16+
17+
- name: Install dependencies
18+
run: npm ci
19+
20+
- name: Build typescript
21+
run: npm run tsc
22+
23+
- name: Run ESLint
24+
run: npm run lint
25+
26+
# TODO Uncomment when tests are added
27+
# - name: Run tests
28+
# run: npm test
29+
30+
- name: Build package
31+
run: npm run build

examples/studio-i18n/package-lock.json

Lines changed: 114 additions & 127 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)