Skip to content

intro Lens CLI (#903) #4171

intro Lens CLI (#903)

intro Lens CLI (#903) #4171

Workflow file for this run

name: "CI"
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
install:
name: Install Dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- run: pnpm install --frozen-lockfile
lint:
name: Lint
runs-on: ubuntu-latest
needs: install
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm lint
test:
name: Test
runs-on: ubuntu-latest
needs: install
steps:
- name: Set swap space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 8
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- name: Run tests
run: pnpm test
env:
TESTING_ENV_URL: ${{secrets.TESTING_ENV_URL}}
TESTING_NO_RATE_LIMIT: ${{secrets.TESTING_NO_RATE_LIMIT}}
TESTING_WHITELISTED: ${{secrets.TESTING_WHITELISTED}}
build:
name: Build
runs-on: ubuntu-latest
needs: [install, lint, test]
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm build
examples:
name: Verify Examples
runs-on: ubuntu-latest
needs: [install, lint, test]
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm lint:examples