diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..03f0b9a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: ci +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up nodejs + uses: actions/setup-node@v2 + with: + node-version: 'lts/*' + cache: 'npm' + + - name: npm CI + run: npm ci + + - name: npm Check + run: npm run check + + - name: npm Test + run: npm run test + + - name: npm Build + run: npm run build diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ab48905..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: node_js - -node_js: - - "lts/*" - -cache: npm - -git: - depth: false - -before_script: - - npm install - -script: - - npm run check - - npm run test - - npm run build