chore(chart): chart init #1146
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
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: CI | |
on: | |
push: | |
pull_request: | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
LAMBDA_USER: ${{ secrets.LAMBDA_USER }} | |
LAMBDA_KEY: ${{ secrets.LAMBDA_KEY }} | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
cache: "npm" | |
- name: NPM install | |
run: npm ci | |
lint: | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
cache: "npm" | |
- name: NPM install | |
run: npm ci | |
- name: Run lint | |
run: npm run lint --if-present | |
build: | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
cache: "npm" | |
- name: NPM install | |
run: npm ci | |
- name: Run Build | |
run: npm run build --if-present | |
- name: run test | |
run: npm run test:unit:ci | |
e2e: | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
cache: "npm" | |
- name: NPM install | |
run: npm ci | |
- name: Run E2E | |
run: npm run test:e2e |