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 18, 2023
1 parent 959b7f1 commit 41eab26
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/zowe-explorer-samples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Zowe Explorer Samples CI

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

jobs:
samples-build:
runs-on: ${{ matrix.os }}

timeout-minutes: 30

concurrency:
group: ${{ matrix.os }}-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]
# order operating systems from best to worst
os: [windows-latest, ubuntu-latest, macos-latest]

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 41eab26

Please sign in to comment.