Skip to content

refactor: improved portal quickstart to use command-action structure #274

refactor: improved portal quickstart to use command-action structure

refactor: improved portal quickstart to use command-action structure #274

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Run and check build for current commit
# Controls when the workflow will run
on:
# Triggers the workflow on pull request events but only for the alpha and dev branches
pull_request:
branches: [ alpha, dev ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '18', '20', '22', '24' ]
name: Node ${{ matrix.node }} sample
steps:
- name: checkout cli
uses: actions/checkout@v4
with:
repository: apimatic/apimatic-cli
token: ${{ secrets.GITHUB_TOKEN }}
persist-credentials: false
fetch-depth: 0
path: cli
- name: setup node
uses: actions/setup-node@v2
- name: Install dependencies
working-directory: cli
run: npm install
- name: Check Build
working-directory: 'cli'
run: npm run build