Skip to content

Merge pull request #19 from CrowdStrike/dependabot/npm_and_yarn/follo… #18

Merge pull request #19 from CrowdStrike/dependabot/npm_and_yarn/follo…

Merge pull request #19 from CrowdStrike/dependabot/npm_and_yarn/follo… #18

Workflow file for this run

name: Sample CI
on: [ push, pull_request ]
jobs:
build:
strategy:
matrix:
path:
- shared/mitre-vue
- ui/extensions/remediations
- ui/pages/chart-vue
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
- name: Run yarn install in ${{ matrix.path }}
uses: borales/actions-yarn@v5
with:
cmd: install
dir: ${{ matrix.path }}
- name: Build Vue app in ${{ matrix.path }}
if: matrix.path != 'shared/mitre-vue'
uses: borales/actions-yarn@v5
with:
cmd: build
dir: ${{ matrix.path }}
- name: Test the Vue app in ${{ matrix.path }}
uses: borales/actions-yarn@v5
with:
cmd: test:unit
dir: ${{ matrix.path }}