Skip to content

Commit

Permalink
add test ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
cloverich committed Feb 17, 2024
1 parent d7078d3 commit cd2ab19
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,13 @@ jobs:
- run: yarn install
- run: yarn run lint:prettier:check
- run: yarn run lint:types:check
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- run: yarn install
- run: yarn run test
2 changes: 2 additions & 0 deletions scripts/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const testFiles = findTestFiles("src");
testFiles.forEach(async (file) => {
await esbuild.build({
entryPoints: [file],
// NOTE: If changing filename, also update findTestFiles glob above to avoid
// bundled test files being used as source!
outfile: file.replace(".test.ts", ".test.bundle.js"),
bundle: true,
platform: "node",
Expand Down

0 comments on commit cd2ab19

Please sign in to comment.