removed unused dependencies, removed sntry #6
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
name: CI | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.20.0] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "yarn" | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: ${{ runner.os }}-yarn- | |
- name: Switch to Dev | |
run: yarn env:switch:dev | |
- name: Install dependencies | |
run: yarn install | |
- name: Run typescript and linter | |
run: yarn tsc && yarn lint | |
- name: Run formatter | |
run: yarn format | |
- name: Run update shared-deps | |
run: yarn update:shared-deps | |
- name: Run tests | |
env: | |
NODE_OPTIONS: "--max-old-space-size=20480" | |
run: yarn test:ci |