mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-12 15:52:56 +10:00
add test to github action
This commit is contained in:
43
.github/workflows/lint-test-build.yml
vendored
Normal file
43
.github/workflows/lint-test-build.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
name: Lint, Test and Build
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: "${{ github.workflow }}-${{ github.ref }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
NX_BRANCH: "${{ github.event.number || github.ref_name }}"
|
||||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|
||||
|
||||
jobs:
|
||||
main:
|
||||
name: Nx Cloud - Main Job
|
||||
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.14.0
|
||||
with:
|
||||
main-branch-name: main
|
||||
number-of-agents: 1
|
||||
init-commands: |
|
||||
pnpm exec prisma generate
|
||||
pnpm exec nx-cloud start-ci-run --stop-agents-after="build" --agent-count=1
|
||||
parallel-commands-on-agents: |
|
||||
pnpm exec nx-cloud record -- pnpm exec nx affected --target=lint
|
||||
pnpm exec nx-cloud record -- pnpm exec nx affected --target=test
|
||||
pnpm exec nx-cloud record -- pnpm exec nx affected --target=build
|
||||
|
||||
agents:
|
||||
name: Nx Cloud - Agents
|
||||
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.14.0
|
||||
with:
|
||||
number-of-agents: 1
|
||||
Reference in New Issue
Block a user