Skip to content

Commit

Permalink
Add workflow to test that samples build
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <[email protected]>
  • Loading branch information
t1m0thyj committed Aug 21, 2023
1 parent 959b7f1 commit 6fbe346
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/zowe-explorer-samples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Zowe Explorer Samples CI

on:
push:
paths:
- .github/workflows/zowe-explorer-samples.yml
- packages/zowe-explorer-api/**
- samples/**
pull_request:
paths:
- .github/workflows/zowe-explorer-samples.yml
- packages/zowe-explorer-api/**
- samples/**

jobs:
samples-build:
runs-on: ubuntu-latest
timeout-minutes: 30

concurrency:
group: node-${{ matrix.node-version }}-ze-samples-ci-${{ github.ref }}
cancel-in-progress: true

strategy:
# Continue to run tests on the other systems if one fails
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x]

if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) && !contains(github.event.head_commit.message, '[ci skip]')

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

# install yarn
- run: npm install -g yarn

- run: for dir in samples/*; do pushd $dir && yarn && yarn run compile && popd; done
shell: bash

0 comments on commit 6fbe346

Please sign in to comment.