-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
194bc53
commit 6a24f19
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Lint and Test | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/node-and-npm | ||
- name: Run tests | ||
run: | | ||
export NODE_OPTIONS="--max_old_space_size=4096" | ||
LOG_LEVEL=error npm test | ||
- name: Lint | ||
run: npm run lint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Node | ||
description: Reusable action to get the correct node version installed in CI | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.15 | ||
- name: cache node_modules | ||
uses: actions/cache@v4 | ||
with: | ||
key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | ||
path: | | ||
node_modules | ||
- name: install npm & node dependencies | ||
shell: bash | ||
run: npm i -g [email protected] && npm i | ||
|