MAF 3.0 #5
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 Validations Package | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
paths: | |
- 'packages/validations/**' | |
pull_request: | |
paths: | |
- 'packages/validations/**' | |
jobs: | |
MAF-Validations: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/previous-releases | |
steps: | |
- uses: actions/[email protected] | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm test -w packages/validations | |
env: | |
ENVIRONMENT: CI | |
- name: Status Create Action | |
if: ${{ always() }} | |
uses: hkusu/[email protected] | |
id: status-create | |
with: | |
state: ${{ job.status }} | |
sha: ${{ github.sha }} | |
- name: Show result | |
if: always() | |
run: echo '${{ steps.status-create.outputs.result }}' |