diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 000000000..0ff6907dd --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,26 @@ +name: Lint & Unit Test +on: + push: + branches: [ master, dev ] + pull_request: + branches: [dev] +jobs: + check: + runs-on: ubuntu-latest + strategy: + matrix: + node: [ 12, 14, 16, 18 ] + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - name: Install dependencies + run: npm install -g codecov && npm install + - name: Run Lint + run: npm run lint + - name: Run tests + run: npm test && codecov diff --git a/.travis.yml b/.travis.yml index ec3ad83d2..b8aba28b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,10 @@ cache: - ~/.npm - node_modules node_js: + - '18' + - '16' - '14' - '12' - - '10' - - '8' install: - npm install -g codecov - npm install @@ -20,5 +20,5 @@ after_success: npx travis-deploy-once --pro && npm run build && npm run babel && npm install -g @semantic-release/changelog @semantic-release/git semantic-release && semantic-release && echo release success && curl ${TriggerUrl} && npm run test:sauce; fi branches: - except: - - /^v\d+\.\d+\.\d+$/ + only: + - master