build(deps): Bump docker/setup-buildx-action from 2 to 3 #96
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: frontend lint | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/**" | |
- "dashboard/**" | |
pull_request: | |
paths: | |
- ".github/workflows/**" | |
- "dashboard/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
frontend-lint: | |
name: frontend-lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2.2.4 | |
with: | |
version: 7.17.1 | |
run_install: | | |
- cwd: "./dashboard" | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v3.7.0 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
cache: pnpm | |
cache-dependency-path: dashboard/pnpm-lock.yaml | |
- name: ESLint | |
run: npx eslint . | |
working-directory: ./dashboard | |
- name: build | |
run: pnpm build | |
working-directory: ./dashboard | |
- name: check git status | |
run: | | |
if [[ $(git status --porcelain) ]]; then | |
echo "git tree is not clean after build" | |
exit 1 | |
else | |
echo "git tree is clean after build" | |
fi |