docs(readme): comply new policy template INTER-292 #58
Workflow file for this run
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
# Reference on this file: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
name: Lint, build and test | |
on: | |
pull_request: | |
jobs: | |
build: | |
name: Lint, build and test | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
**/node_modules | |
!**/dist/node_modules | |
key: nodemodules-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: nodemodules- | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.node-version' | |
- name: Install Node packages | |
run: yarn install | |
- name: Lint | |
run: yarn lint | |
- name: Build | |
run: yarn build | |
- name: Tests | |
run: yarn test |