[photos][web] Match mobile date formatting for comments #1939
Workflow file for this run
This file contains hidden or 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: "Lint (web)" | |
| on: | |
| # Run on every pull request (open or push to it) that changes web/ | |
| pull_request: | |
| paths: | |
| - "web/**" | |
| - "rust/core/**" | |
| - ".github/workflows/web-lint.yml" | |
| permissions: | |
| contents: read | |
| # Cancel in-progress lint runs when a new commit is pushed. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: web | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Setup node and enable yarn caching | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: "yarn" | |
| cache-dependency-path: "web/yarn.lock" | |
| - run: yarn install --frozen-lockfile | |
| - run: yarn build:wasm | |
| - run: yarn lint | |
| - run: yarn test:run | |
| - name: Audit dependencies | |
| run: | | |
| yarn audit --level critical || exit_code=$? | |
| if [[ $exit_code -ge 16 ]]; then | |
| echo "::error::Yarn audit found critical issues" | |
| exit 1 | |
| fi |