diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 01429794df..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -language: node_js -node_js: - - "lts/*" - - "node" -env: - # we current only test "use strict" for our NPM builds - - BUILD=node TEST_STRICT_BUNDLE=1 - - BUILD=browser - - BUILD=browser NO_MINIFY=1 -script: - - | - export BUILD_PARAMS="-t $BUILD" - - if [ "x$NO_MINIFY" = "x1" ]; then - export BUILD_PARAMS="$BUILD_PARAMS -n" - fi - - node tools/build.js $BUILD_PARAMS - - # test that our build is "use strict" safe for use with packaging - # systems importing our source thru ES6 modules (rollup, etc.) - if [ "x$TEST_STRICT_BUNDLE" = "x1" ]; then - ./node_modules/.bin/rollup -c test/builds/rollup_import_via_commonjs.js - node build/bundle.js || exit 1 - rm build/bundle.js - fi - - if [ "x$BUILD" = "xnode" ]; then - npm run test - else - npm run test-browser || exit 1 - # our browser build should also work fine as a Node.js CommonJS module - node test/builds/browser_build_as_commonjs.js - fi -sudo: false # Use container-based architecture diff --git a/README.md b/README.md index 035677118c..47a15eaabd 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,7 @@ [![NPM downloads weekly](https://badgen.net/npm/dw/highlight.js?label=npm+downloads&color=purple)](https://www.npmjs.com/package/highlight.js) [![jsDelivr CDN downloads](https://badgen.net/jsdelivr/hits/gh/highlightjs/cdn-release?label=jsDelivr+CDN&color=purple)](https://www.jsdelivr.com/package/gh/highlightjs/cdn-release) - -![build and CI status](https://badgen.net/github/checks/highlightjs/highlight.js/main?label=build) +[![ci status](https://badgen.net/github/checks/highlightjs/highlight.js/main?label=build)](https://github.com/highlightjs/highlight.js/actions/workflows/tests.js.yml) [![code quality](https://badgen.net/lgtm/grade/g/highlightjs/highlight.js/js?label=code+quality)](https://lgtm.com/projects/g/highlightjs/highlight.js/?mode=list) [![vulnerabilities](https://badgen.net/snyk/highlightjs/highlight.js)](https://snyk.io/test/github/highlightjs/highlight.js?targetFile=package.json) ![dev deps](https://badgen.net/david/dev/highlightjs/highlight.js?label=dev+deps) diff --git a/test/builds/package.js b/test/builds/package.js index eaff262ce0..9edaa6778d 100644 --- a/test/builds/package.js +++ b/test/builds/package.js @@ -2,7 +2,7 @@ This file is used by import_via_commonjs.js to build a single "package" and acts as a sanity check that all our code is "use strict" safe -See .travis.yml +See .github/workflows/tests.js.yml */ import hljs from '../../build/lib/index.js';