Merge pull request #144 from zowe-actions/fix/lerna-hybrid-version #472
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Build and Test | |
run: npm run all | |
- name: Fail if Build Outdated | |
run: test -z "$(git status --porcelain)" | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create Release Config | |
run: | | |
echo '{"branches":["master","next"]}' > .releaserc | |
- uses: ./ | |
with: | |
dry-run: true | |
- uses: ./script | |
with: | |
script: npmUpdate |