fix(deps): update all non-major dependencies #1052
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: app lint | |
on: push | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
jobs: | |
filter: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: read | |
outputs: | |
app: ${{ steps.changes.outputs.app }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: check for file changes | |
uses: dorny/paths-filter@v2 | |
id: changes | |
with: | |
token: ${{ github.token }} | |
filters: .github/filter.yaml | |
lint: | |
runs-on: ubuntu-latest | |
needs: filter | |
if: ${{ needs.filter.outputs.app == 'true' }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
# The action will look for `volta.node` first. If `volta.node` isn't defined, then it will look for `engines.node` | |
# Refer: https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#node-version-file | |
node-version-file: "package.json" | |
- name: setup pnpm | |
uses: pnpm/action-setup@v2.4.0 | |
id: pnpm-install | |
with: | |
# Version of pnpm to install: | |
# Optional when there is a packageManager field in the package.json. | |
# Refer: https://github.com/pnpm/action-setup#inputs | |
run_install: false | |
- name: get pnpm store | |
id: pnpm-cache | |
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
name: setup pnpm cache | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: ${{ runner.os }}-pnpm-store- | |
- name: install | |
run: pnpm install --frozen-lockfile | |
- name: eslint | |
run: pnpm turbo lint -- --max-warnings=0 | |
app-lint-check: | |
runs-on: ubuntu-latest | |
needs: lint | |
if: ${{ ! failure() }} | |
steps: | |
- name: check | |
run: echo "lint is successfully executed." |