Skip to content

Add CodePen example for fetching tweet by id #146

Add CodePen example for fetching tweet by id

Add CodePen example for fetching tweet by id #146

Workflow file for this run

name: Pull Request Workflow
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
pull_request:
branches:
- main
jobs:
pull_request_workflow:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install --no-frozen-lockfile

Check failure on line 24 in .github/workflows/pull-request.yaml

View workflow run for this annotation

GitHub Actions / Pull Request Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/pull-request.yaml (Line: 24, Col: 13): The identifier 'pnpm-install --no-frozen-lockfile' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run ESLint check
run: pnpm lint
- name: Run Prettier check
run: pnpm format-check
- name: Run type check
run: pnpm type-check
- name: Run tests
run: pnpm test:ci