Skip to content

Commit

Permalink
feat: update test.yml -> ci.yml and set command
Browse files Browse the repository at this point in the history
  • Loading branch information
Rain120 committed Jan 7, 2020
1 parent bddd038 commit 43b96b6
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 36 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Test

on:
push:
branches:
- master
pull_request:
branches:
- '!master'
- 'dev**'

jobs:
build:

runs-on: ubuntu-latest

# strategy:
# matrix:
# node-version: [8.x, 10.x, 12.x]

steps:
- uses: actions/checkout@v1
run: npm i
run: npm run docs:build
run: npm run changelog
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v1
# with:
# node-version: ${{ matrix.node-version }}

- name: Build and Deploy Docs
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
EXTERNAL_REPOSITORY: rain120/rain120.github.io/awesome-javascript-code-implementation
PUBLISH_BRANCH: master
PUBLISH_DIR: docs/.vuepress/dist
CI: true

- name: Test
run: |
# npm run build --if-present
npm test
# npm run coveralls
# npm run build
npm run changelog
env:
CI: true
36 changes: 0 additions & 36 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 43b96b6

Please sign in to comment.