Update $gtm global property augmentation (#467) #508
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
node_version: [22] | |
fail-fast: false | |
name: 'Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }}' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Install pnpm | |
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v3.0.0 | |
- name: Set node version to ${{ matrix.node_version }} | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
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: Check scripts | |
run: pnpm run ts-check | |
- name: Test | |
run: pnpm run test | |
lint: | |
runs-on: ubuntu-latest | |
name: 'Lint: node-22, ubuntu-latest' | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Install pnpm | |
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v3.0.0 | |
- name: Set node version to 22 | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: 22 | |
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 . |