Skip to content

Bump @types/node from 20.5.9 to 22.0.0 #106

Bump @types/node from 20.5.9 to 22.0.0

Bump @types/node from 20.5.9 to 22.0.0 #106

Workflow file for this run

name: build & test
on:
pull_request:
paths-ignore:
- "*.md"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: Run test on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install packages
run: npm ci
- name: Run tests
run: npm run test
- name: Build package
run: npm run build
- name: Test installing gh cli
id: install
uses: ./
with:
version: 2.34.0
- name: Test gh command works on ubuntu
if: matrix.os == 'ubuntu-latest'
env:
INSTALL_OUTPUT: ${{ steps.install.outputs.gh_version }}
run: |
echo "Installed gh version: $INSTALL_OUTPUT"
$RUNNER_TOOL_CACHE/gh/2.34.0/x64/bin/gh --version
- name: Test gh command works on macos
if: matrix.os == 'macos-latest'
env:
INSTALL_OUTPUT: ${{ steps.install.outputs.gh_version }}
run: |
echo "Installed gh version: $INSTALL_OUTPUT"
$RUNNER_TOOL_CACHE/gh/2.34.0/arm64/gh_2.34.0_macOS_arm64/bin/gh --version
- name: Test gh command works on windows
if: matrix.os == 'windows-latest'
shell: cmd
env:
INSTALL_OUTPUT: ${{ steps.install.outputs.gh_version }}
run: |
echo "Installed gh version: %INSTALL_OUTPUT%"
%RUNNER_TOOL_CACHE%\gh\2.34.0\x64\bin\gh --version