refactor: move project into app package #65
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
paths-ignore: | |
- "**/README.md" | |
pull_request: | |
paths-ignore: | |
- "**/README.md" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 20.x ] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup node | |
uses: actions/setup-node@master | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: install pnpm | |
run: npm i pnpm -g | |
- name: install dependencies | |
run: pnpm i -r | |
- name: lint | |
run: | | |
pnpm run lint:code | |
pnpm run lint:styles | |
pnpm run lint:types | |
- name: unit testing | |
run: pnpm run test:unit:ci | |
- name: unit test coverage report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage | |
path: ./coverage | |
if-no-files-found: error | |
- name: build | |
run: pnpm run build | |
- name: build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build | |
path: ./src/apps/escapist-marginalia/build | |
if-no-files-found: error |