Skip to content

Commit

Permalink
Merge pull request #16 from skedify/release/next
Browse files Browse the repository at this point in the history
release/next
  • Loading branch information
DemianD committed Jun 9, 2021
2 parents aca7e83 + 82313c9 commit 9565a01
Show file tree
Hide file tree
Showing 53 changed files with 29,717 additions and 11,993 deletions.
21 changes: 10 additions & 11 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"sourceRoot": "src",
"sourceType": "module",
"filenameRelative": "index.js",
"sourceMaps": "inline",
"plugins": [
"syntax-trailing-function-commas",
"transform-object-rest-spread"
],
"env": {
"test": {
"plugins": [
"transform-es2015-modules-commonjs"
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
]
}
}
}
}
25 changes: 0 additions & 25 deletions .editorconfig

This file was deleted.

238 changes: 0 additions & 238 deletions .eslintrc.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
LICENSE text

# Declare types of files which are binary and which should not be modified
*.ico binary
*.ico binary
92 changes: 92 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: CI
on: [push]
jobs:
build:
name: Create and verify a new build

runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup node.js
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1

- name: Lint
run: npm run lint

- name: Test
run: npm test -- --ci --coverage --maxWorkers=2

- name: Build
run: npm run build

- uses: actions/upload-artifact@v2
with:
name: artifact-${{ github.run_id }}
path: dist

- name: Drop development dependencies
run: npm prune --production

- uses: actions/upload-artifact@v2
with:
name: node-modules-${{ github.run_id }}
path: node_modules
test:
name: Test functionality on Node ${{ matrix.node }}
needs: build

runs-on: ubuntu-latest
strategy:
matrix:
node: ['9', '10', '12', '14', '16']

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- uses: actions/download-artifact@v2
with:
name: artifact-${{ github.run_id }}
path: dist

- uses: actions/download-artifact@v2
with:
name: node-modules-${{ github.run_id }}
path: node_modules

- name: Run client tests
run: npm run test:client


publish:
name: Publish extra information about the build
needs: test

runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1

- name: Publish Semantic Release
uses: cycjimmy/semantic-release-action@v2
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 9565a01

Please sign in to comment.