Skip to content

Commit

Permalink
Merge branch 'feature/ci' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandryackovlev committed Mar 8, 2021
2 parents a1fdf61 + 4e0a779 commit 7c736fb
Show file tree
Hide file tree
Showing 8 changed files with 7,254 additions and 11,829 deletions.
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ env:
extends:
- airbnb-base
- 'plugin:@typescript-eslint/recommended'
- 'prettier/@typescript-eslint'
- 'plugin:prettier/recommended'
globals:
Atomics: readonly
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build

on: [ push, pull_request ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
yarn install --frozen-lockfile
- name: Build
run: |
yarn build
- name: Run tests
run: |
yarn test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
45 changes: 45 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: publish

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- name: Install dependencies
run: |
yarn install --frozen-lockfile
- name: Build
run: |
yarn build
- name: Run tests
run: |
yarn test
- uses: actions/upload-artifact@v2
with:
name: build-dist
path: dist

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- uses: actions/download-artifact@v2
with:
name: build-dist
path: dist
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 7c736fb

Please sign in to comment.