Monitor crowd-sourced data pod #297
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: Lint | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["main", "gql"] | |
pull_request: | |
branches: ["main", "gql"] | |
jobs: | |
build: | |
name: Lint and Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# setup nodejs | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
# cache node_modules | |
- name: Cache node_modules | |
id: cache-node-modules | |
uses: actions/cache@v4 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install Dependencies | |
if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: Lint | |
run: npx turbo run lint | |
- name: Build | |
run: npx turbo run build |