Update the cross-spawn version to 7.0.6 #137
Workflow file for this run
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: build-test | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request_target: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build-test: | |
strategy: | |
matrix: | |
node-version: | |
- 18 | |
- 20 | |
runs-on: ubuntu-latest | |
if: github.repository == 'opensearch-project/automation-app' | |
steps: | |
- uses: actions/checkout@v4 | |
if: github.event_name == 'push' | |
- uses: actions/checkout@v4 | |
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up node-${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies and build the code | |
run: npm install | |
- name: Verify styling | |
id: style_verify | |
run: npm run format-dryrun | |
- name: Verify styling failure msg | |
if: steps.style_verify.outcome == 'failure' | |
run: echo "Please run 'npm run format' before commiting the code!" | |
- name: Run build test | |
run: npm run build | |
- name: Run junit | |
run: npm run junit | |
- name: Upload results to Codecov | |
if: ${{ !cancelled() }} | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Upload junit test results to Codecov | |
if: ${{ !cancelled() }} | |
uses: codecov/test-results-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |