Skip to content

Bump p-map from 7.0.3 to 7.0.4 #5257

Bump p-map from 7.0.3 to 7.0.4

Bump p-map from 7.0.3 to 7.0.4 #5257

Workflow file for this run

name: ci
on:
workflow_call:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm run lint
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run build
run: |
pnpm run build
# remove dev dependencies to mimic a user installing the package
rm -rf node_modules
pnpm install --prod
# ensure we can run it
dist/main.js
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm run test
dependabot:
needs: [lint, build, test]
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'gadget-inc/ggt'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v2
- name: Merge dependabot PR
run: gh pr merge --auto --squash "$PR_URL"
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}