Skip to content

Commit

Permalink
feat: build and test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pierobassa committed May 29, 2024
1 parent 27782dc commit a9131b8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Unit Testing

on:
workflow_dispatch:
pull_request:
branches:
- main

jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Use Node v20
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: "yarn"

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Lint
run: yarn lint

- name: Unit Tests
run: yarn test

0 comments on commit a9131b8

Please sign in to comment.