From 171ae9809366134fa94f36db23d2dc65eb606773 Mon Sep 17 00:00:00 2001 From: Patrick Furtak Date: Thu, 19 Sep 2024 17:30:42 -0400 Subject: [PATCH] Add ghub actions workflow Case MOONS-1735: A workflow has been added to ensure pull-requests build, have passing unit tests, and conform to lint standards. Changelog: Pull request pipeline has been added. --- .github/workflows/main.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..e831f8a --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,23 @@ +name: PR Checks +on: + pull_request: + types: + - opened +jobs: + pr-checks: + runs-on: ubuntu-latest + steps: + - name: Checkout Source + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 16.20.2 + - name: Install NPM Packages + run: npm install --also=dev + - name: Run ESlint + run: npm run lint + - name: Run Unit Tests + run: npm run test + - name: Build Project + run: npm run build:prod