mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-10 04:22:27 +10:00
54 lines
1008 B
YAML
54 lines
1008 B
YAML
name: Lint, Test & Build
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
main:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4.1.1
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v3.0.0
|
|
with:
|
|
version: 9.1.3
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4.0.2
|
|
with:
|
|
cache: "pnpm"
|
|
node-version: 20.13.1
|
|
|
|
- name: Install Dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Lint
|
|
run: pnpm lint
|
|
|
|
- name: Format
|
|
run: pnpm format:check
|
|
|
|
- name: Test
|
|
run: pnpm test
|
|
|
|
- name: Build
|
|
run: pnpm build
|
|
env:
|
|
NODE_ENV: production
|
|
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|