From a9131b82f028436d4f55c54e76418f181a1da75e Mon Sep 17 00:00:00 2001 From: Piero Bassa Date: Wed, 29 May 2024 12:35:15 +0200 Subject: [PATCH] feat: build and test workflow --- .github/workflows/build-and-test.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build-and-test.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..2612409 --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -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 \ No newline at end of file