Skip to content

Update actions to run when a PR is modified or merged into main #19

Update actions to run when a PR is modified or merged into main

Update actions to run when a PR is modified or merged into main #19

Workflow file for this run

name: "Validate Action"
on:
pull_request:
push:
branches:
- main
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: npm ci
- name: Run JSON File Action
uses: ./ # Assuming the action is in the root directory
with:
json-file-path: "tests/test.json"
example-app: "sample-app-1"
build-script: "tests/build_script.sh"