Skip to content

Add GitHub Action to run test suite for pull requests #2

Add GitHub Action to run test suite for pull requests

Add GitHub Action to run test suite for pull requests #2

Workflow file for this run

name: Tests
on:
push:
branches: [ master ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Dependencies
run: yarn
- name: Build All
run: yarn build
- name: Run Tests
run: yarn test
- name: Run Linter Checks
run: yarn fmt && yarn lint && (git diff-index --quiet HEAD; git diff)