Skip to content

Commit

Permalink
test: add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcc committed Mar 23, 2023
1 parent bd02354 commit a98d0ee
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 70 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
89 changes: 19 additions & 70 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a98d0ee

Please sign in to comment.