Pputman/update yaml workflow version #113
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: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- "main" | |
- "feature/**" | |
push: | |
branches: | |
- "main" | |
jobs: | |
ci: | |
name: Build & Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Check out the repo" | |
uses: "actions/checkout@v3" | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 12 | |
- name: Install dependencies | |
run: "yarn install --immutable" | |
- name: Build packages | |
run: yarn build | |
- name: Run lint checks | |
run: | | |
yarn run prettify:diff | |
yarn run lint | |
yarn run lint:tests | |
- name: Run tests | |
run: yarn run test --maxWorkers 2 | |