Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add travis test #204

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

name: Node.js Package

#on: [push]

on:
release:
types: [created]
Expand Down
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: node_js
dist: jammy
node_js:
- 20
script:
- echo "starting to build"
- npm install
- npm run clean
- npm run vitest
- curl -fsSL --retry 3 "https://github.com/trunk-io/analytics-cli/releases/latest/download/trunk-analytics-cli-x86_64-unknown-linux.tar.gz" | tar -xvz > ./trunk-analytics-cli
- ./trunk-analytics-cli upload --junit-paths "test-output.xml" --org-url-slug $TRUNK_ORG_SLUG --token $TRUNK_API_TOKEN
11 changes: 0 additions & 11 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ runtimes:
- [email protected]
- [email protected]
lint:
definitions:
- name: foofinder
files: [ALL]
runtime: node
commands:
- output: pass_fail
success_codes: [0, 1]
run: node ${workspace}/../trunk_plugin_tutorial/findfoo.js ${target}
read_output_from: stdout

enabled:
- [email protected]
- [email protected]
Expand All @@ -34,7 +24,6 @@ lint:
- [email protected]
- [email protected]
- [email protected]
- foofinder@SYSTEM
actions:
enabled:
- trunk-announce
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"scripts": {
"test": "npm run vitest && npm run type-check",
"vitest": "vitest run --dir test",
"vitest": "vitest run --dir test --reporter=junit --outputFile=./test-output.xml",
"build": "node build.js",
"type-check": "tsc",
"clean": "rm -rf dist/ output/ *.tgz",
Expand Down