Skip to content

Example pull request #50

Example pull request

Example pull request #50

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
SNAPSHOTS_SERVICE_URL: https://ef9a-93-179-255-178.ngrok-free.app
BUDDY_VT_TOKEN: bud_vt_us_s5gd67sq1ixg97gn8bvniani5dm62t
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 9.6.0
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: 'pnpm'
- run: echo GITHUB_SHA $GITHUB_SHA
- run: git branch -a
- run: git merge-base origin/main origin/dev
- run: pnpm i
- run: pnpm run test