From a98d0eeedf77fab22a8a996b8a73784ab14a76ca Mon Sep 17 00:00:00 2001 From: hustcc Date: Thu, 23 Mar 2023 15:17:16 +0800 Subject: [PATCH] test: add github action --- .github/workflows/build.yml | 21 +++++++++ .gitignore | 89 ++++++++----------------------------- 2 files changed, 40 insertions(+), 70 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000000..aa89088bbc5 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: build + +on: [push] + +jobs: + build: + runs-on: macOS-latest + + steps: + - name: Checkout + uses: actions/checkout@v2.3.4 + + - name: Setup Node.js environment + uses: actions/setup-node@v2.1.5 + with: + node-version: '14' + + - name: Run CI + run: | + npm install + npm run test \ No newline at end of file diff --git a/.gitignore b/.gitignore index 737a820c95e..be7ac37610e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,85 +4,34 @@ logs npm-debug.log* yarn-debug.log* yarn-error.log* +lerna-debug.log* yarn.lock -es -# lock -package-lock.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release +# Sys +.DS_Store +.idea -# Dependency directories +# Node node_modules/ -jspm_packages/ - -# Typescript v1 declaration files -typings/ -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env - -build +# Build dist -temp -.DS_Store -.idea -demos lib +esm -*.sw* -*.un~ - -# cache -*.cache -public +# Test +coverage -esm +# Bundle visualizer +stats.html -es +# Snapshots error images +__tests__/integration/snapshots/**/*-actual.* +__tests__/integration/snapshots/**/*-diff.* -.github -# .storybook -.vscode/ +# Website cache byb dumi +site/.dumi/tmp +site/.dumi/tmp-production -stats.json +# Editor +.vscode