Add new dfract and millions utility scripts #119
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: Format and unit test the code when a pull request is opened | |
on: | |
pull_request: | |
branches: | |
- master | |
- develop | |
types: [opened, edited, synchronize, reopened] | |
jobs: | |
build: | |
name: Format Lint Test Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
env: | |
CLOUDSDK_CORE_PROJECT: dev | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Run code formatter | |
run: yarn format | |
- name: Run code linter | |
run: yarn lint | |
- name: Run unit tests | |
run: yarn test | |
- name: Run build lib, types and docs | |
run: yarn build |