-
Notifications
You must be signed in to change notification settings - Fork 15
40 lines (34 loc) · 1.09 KB
/
check_build.yml
File metadata and controls
40 lines (34 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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