Skip to content

Commit

Permalink
Merge pull request #166 from Neovici/chore/beta-ci
Browse files Browse the repository at this point in the history
chore(ci): support beta releases
  • Loading branch information
megheaiulian authored Jun 15, 2022
2 parents 3653547 + 43282e0 commit cbb3c38
Show file tree
Hide file tree
Showing 18 changed files with 8,546 additions and 12,539 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./node_modules/@neovici/cfg/eslint"
}
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

File renamed without changes.
34 changes: 10 additions & 24 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,28 @@ on:
pull_request:
branches:
- master
- beta
push:
branches:
- master
- beta

jobs:
lint-test-publish:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Use Node.js 14.x
uses: actions/setup-node@v1
uses: actions/checkout@v2
with:
node-version: 14.x
fetch-depth: 0

- name: Restore npm cache
id: node-cache
uses: actions/cache@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
path: node_modules
key: ${{ runner.os }}-node-0-${{ hashFiles('**/package-lock.json') }}
node-version: 16.x
cache: 'npm'

- name: Install
if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci

- name: Lint commit messages
Expand All @@ -39,20 +36,9 @@ jobs:
run: npm run lint

- name: Test and report
env:
CC_TEST_REPORTER_ID: 48833ad27a301e5714aa1de8de7f8b8f0a662c12aceefab9cbc37d0a7e888a0e
GIT_BRANCH: ${{ github.ref == 'refs/heads/master' && 'master' || github.ref }}
GIT_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
NEO_CC_URL: https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
NEO_CC: ./cc-test-reporter
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: |
([[ -e $NEO_CC ]] || curl -L $NEO_CC_URL > $NEO_CC) && chmod +x $NEO_CC
$NEO_CC before-build
echo "::add-matcher::.github/karma-problem-matcher.json"
echo "::add-matcher::.github/problem-matcher.json"
npm test
$NEO_CC after-build --exit-code $?
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@neovici/cfg/prettier"
1 change: 0 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
module.exports = {
addons: ['storybook-prebuilt/addon-knobs/register.js'],
stories: ['../stories/**/*.stories.{js,mdx}'],
};
34 changes: 0 additions & 34 deletions .storybook/preview.js

This file was deleted.

Loading

0 comments on commit cbb3c38

Please sign in to comment.