Daniel Rochetti c3a3c3d21a
chore: upgrade dependencies and tooling (#81)
* chore: remove uuid-random dependency

* chore: upgrade prettier

* chore(client): bump version for release
2024-08-07 15:45:15 -07:00

31 lines
849 B
YAML

name: Build
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Format check
run: npx nx affected --target=format --base=remotes/origin/${{ github.base_ref }}
- name: Lint
run: npx nx affected --target=lint --base=remotes/origin/${{ github.base_ref }}
- name: Test
run: npx nx affected --target=test --base=remotes/origin/${{ github.base_ref }}
- name: Build
run: npx nx affected --target=build --prod --base=remotes/origin/${{ github.base_ref }}