This is an automated email from the ASF dual-hosted git repository.
dinglei pushed a commit to branch new-official-website
in repository https://gitbox.apache.org/repos/asf/rocketmq-site.git
The following commit(s) were added to refs/heads/new-official-website by this
push:
new 0d7b0702 [ISSUE #189] move ci to github actions (#190)
0d7b0702 is described below
commit 0d7b07028208e7047c158f0fc9a24e8c39b6008d
Author: dinglei <[email protected]>
AuthorDate: Sun Aug 21 02:04:50 2022 +0800
[ISSUE #189] move ci to github actions (#190)
* move ci to github actions
* update yml files
* try to use docusaurus/core 2.0.0
* try to use docusaurus/core 2.0.0-beta6
* update actions
* update actions
---
.github/workflows/pre-build.yml | 28 ++++++++++++++++++++++++++++
.travis.yml | 13 +++----------
package.json | 4 ++--
3 files changed, 33 insertions(+), 12 deletions(-)
diff --git a/.github/workflows/pre-build.yml b/.github/workflows/pre-build.yml
new file mode 100644
index 00000000..4b5cd020
--- /dev/null
+++ b/.github/workflows/pre-build.yml
@@ -0,0 +1,28 @@
+# This workflow will do a clean installation of node dependencies,
cache/restore them, build the source code and run tests across different
versions of node
+# For more information see:
https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
+
+name: Pre Build CI
+
+on:
+ push:
+ branches: [ "new-official-website" ]
+ pull_request:
+ branches: [ "new-official-website" ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [12.x, 14.x, 16.x]
+ # See supported Node.js release schedule at
https://nodejs.org/en/about/releases/
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v3
+ with:
+ node-version: ${{ matrix.node-version }}
+ - run: npm install --legacy-peer-deps && npm run build --if-present
diff --git a/.travis.yml b/.travis.yml
index 9fb0718f..2acefd52 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,12 +1,5 @@
+dist: xenial
language: nodejs
+node_js: 14
script:
- - npm run build
-
-matrix:
- include:
- - os: linux
- dist: bionic
- node_js: 16
- - os: linux
- dist: xenial
- node_js: 14
\ No newline at end of file
+ - npm install --legacy-peer-deps && npm run build
\ No newline at end of file
diff --git a/package.json b/package.json
index 6c9611b6..6f193ab8 100644
--- a/package.json
+++ b/package.json
@@ -14,8 +14,8 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
- "@docusaurus/core": "2.0.1",
- "@docusaurus/preset-classic": "2.0.1",
+ "@docusaurus/core": "2.0.0-beta.6",
+ "@docusaurus/preset-classic": "2.0.0-beta.6",
"@emotion/react": "^11.9.3",
"@emotion/styled": "^11.9.3",
"@headlessui/react": "^1.6.5",