Skip to content

chore(ci): adding github workflow to build each time a commit is pushed #2

chore(ci): adding github workflow to build each time a commit is pushed

chore(ci): adding github workflow to build each time a commit is pushed #2

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint
- name: Build
run: pnpm build
- name: Run tests
run: pnpm test