-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- separated CI jobs - added typescript checker - enabled strick ts rules
- Loading branch information
Showing
2 changed files
with
58 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,72 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
install: | ||
name: Install | ||
runs-on: ubuntu-latest | ||
continue-on-error: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '16.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: | | ||
npm i | ||
npm run lint | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
run: npm i | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Pack artifact | ||
run: tar czf /tmp/artifact.tar.gz . | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ui-kit-artifact | ||
path: /tmp/artifact.tar.gz | ||
retention-days: 1 | ||
|
||
eslint: | ||
name: Eslint | ||
runs-on: ubuntu-latest | ||
needs: [install] | ||
continue-on-error: false | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: ui-kit-artifact | ||
|
||
- name: Unpack artifact | ||
run: tar xf artifact.tar.gz | ||
|
||
- name: Run eslint | ||
run: npm run lint | ||
|
||
typescript: | ||
name: Typescript | ||
runs-on: ubuntu-latest | ||
needs: [install] | ||
continue-on-error: false | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: ui-kit-artifact | ||
|
||
- name: Unpack artifact | ||
run: tar xf artifact.tar.gz | ||
|
||
- name: Run typescript compile | ||
run: yarn tsc --noEmit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters