chore(deps): bump the dependencies group across 1 directory with 17 updates #210
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: "🐢 Build and Test Examples" | |
on: | |
pull_request_target: | |
types: [opened, synchronize, reopened] | |
branches: [main] | |
paths: | |
- "examples/**/*" | |
push: | |
branches: [main] | |
paths: | |
- "examples/**/*" | |
permissions: | |
contents: read | |
checks: write | |
pull-requests: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# Important security check for pull_request_target | |
if: | | |
(github.event_name == 'push') || | |
(github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name == github.repository) | |
steps: | |
- name: Checkout 🛬 | |
uses: actions/checkout@v4 | |
with: | |
# Important: For PR events, explicitly checkout the PR HEAD | |
ref: ${{ github.event_name == 'pull_request' && format('refs/pull/{0}/head', github.event.pull_request.number) || github.ref }} | |
persist-credentials: false | |
- name: Setup Node ⚙️ | |
uses: ./.github/actions/setup-node | |
with: | |
version: 22.x | |
npm_token: ${{ secrets.NPM_TOKEN }} | |
- name: Build 📦 | |
run: pnpm build:examples | |
- name: Run tests ✅ | |
run: pnpm test:examples | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
FIRECRAWL_API_KEY: ${{ secrets.FIRECRAWL_API_KEY }} |