diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..cc9e73d51 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + pull_request: + paths-ignore: ["*.md"] + push: + branches: ["main"] + paths-ignore: ["*.md"] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node: [12.x, 14.x, 15.x] + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Use node@${{ matrix.node }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node }} + - name: Install dependencies + run: npm ci + - name: Lint code + run: npm run lint + - name: Run tests + run: npm run ci:test + - name: Report code coverage + run: npm run ci:report diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a7efb3642..000000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -sudo: false -node_js: -- "10" -- "12" -language: node_js -install: "npm ci" -script: "npm run ci:test" -after_success: "npm run ci:codecov" diff --git a/package.json b/package.json index da592d063..7f469fdd8 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "format": "eslint -f visualstudio --fix . && prettier \"**/*.{json,md,js}\" --write", "lint": "eslint -f visualstudio . && prettier \"**/*.{js,json,css,md}\" -l", "ci:test": "npm run lint && cross-env MARKO_DEBUG=1 NODE_ENV=test nyc --reporter=text npm test", - "ci:codecov": "nyc report --reporter=text-lcov > coverage.lcov && codecov", + "ci:report": "nyc report --reporter=text-lcov > coverage.lcov && codecov", "report": "nyc report --reporter=html && open ./coverage/index.html", "set-entry": "lerna exec -- dot-json package.json main $\\(dot-json package.json $ENTRY\\)" }, diff --git a/packages/marko/README.md b/packages/marko/README.md index 07e54c549..e07affdb3 100644 --- a/packages/marko/README.md +++ b/packages/marko/README.md @@ -9,7 +9,9 @@
-
+
+
+