name : Run CI checks
on : [pull_request]
jobs :
build :
runs-on : ubuntu-latest
name : Building affected apps
steps :
- uses : actions/checkout@v4
- uses : bahmutov/npm-install@v1
- run : npm run nx affected -- --target=build --base=origin/master --parallel
test :
runs-on : ubuntu-latest
name : Testing affected apps
steps :
- uses : actions/checkout@v4
- uses : bahmutov/npm-install@v1
- run : npm run nx affected -- --target=test --base=origin/master --parallel
lint :
runs-on : ubuntu-latest
name : Linting affected apps
steps :
- uses : actions/checkout@v4
- uses : bahmutov/npm-install@v1
- run : npm run nx affected -- --target=lint --base=origin/master --parallel
e2e :
runs-on : ubuntu-latest
name : E2E testing affected apps
steps :
- uses : actions/checkout@v4
- uses : bahmutov/npm-install@v1
- run : npm run nx affected -- --target=e2e --base=origin/master --parallel
Marking all projects as affected
{
"namedInputs" : {
// ...
"sharedGlobals" : [ , /*..*/ "{workspaceRoot}/.github/workflows/ci.yml" ]
}
}