Skip to content

Commit

Permalink
Add Github action for building, linting and testing (#37)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
tstikvoort and djohalo2 authored Jul 12, 2024
1 parent dedf747 commit 7da01a8
Show file tree
Hide file tree
Showing 17 changed files with 340 additions and 313 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build, lint, and test

on: [push]

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build typescript
run: npm run tsc

- name: Run ESLint
run: npm run lint

# TODO Uncomment when tests are added
# - name: Run tests
# run: npm test

- name: Build package
run: npm run build
241 changes: 114 additions & 127 deletions examples/studio-i18n/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7da01a8

Please sign in to comment.