build(deps-dev): bump @types/lodash from 4.17.5 to 4.17.6 (#606) #1241
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
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
name: Node.js CI | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# https://stackoverflow.com/questions/61010294/how-to-cache-yarn-packages-in-github-actions | |
cache: 'yarn' | |
# https://github.com/kiranojhanp/fullstack-typescript-turborepo-starter/blob/main/.github/workflows/api.yaml | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile --prefer-offline | |
- name: Format Check | |
run: yarn format-check | |
- name: Lint | |
run: yarn lint | |
- name: Type Check | |
run: yarn type-check | |
- name: Test | |
run: yarn test:ci | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
# https://github.com/actions/typescript-action/blob/main/.github/workflows/codeql-analysis.yml | |
# https://github.com/actions/typescript-action/blob/main/.github/workflows/test.yml |