Skip to content

Return gtmPlugin from app context #453

Return gtmPlugin from app context

Return gtmPlugin from app context #453

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node_version: [18, 20]
fail-fast: false
name: 'Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }}'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'
- name: Versions
run: |
echo "pnpm: $(pnpm --version)"
echo "npm : $(npm --version)"
echo "node: $(node --version)"
echo "process.versions:"
node -p process.versions
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
- name: Test
run: pnpm run test --silent
lint:
runs-on: ubuntu-latest
name: 'Lint: node-20, ubuntu-latest'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Set node version to 20
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- name: Prepare
run: |
pnpm install --frozen-lockfile
pnpm run build
- name: Lint
run: pnpm run lint
- name: Check formatting
run: pnpm prettier --check .