Skip to content

Commit

Permalink
fix: adjust cypress config
Browse files Browse the repository at this point in the history
  • Loading branch information
nacho-vazquez committed May 28, 2024
1 parent bb63f96 commit b69208a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 50 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- main
pull_request: {}

permissions:
actions: read
contents: read

concurrency:
# Group concurrency on workflow, then:
# - Is merge run? Group on branch name (`refs/heads/main`)
Expand Down Expand Up @@ -35,10 +39,15 @@ jobs:
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "build" targets have been requested
# - run: npx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"

- name: Setup
uses: ./.github/actions/setup
- uses: pnpm/action-setup@v2
with:
version: 8
# Cache node_modules
- uses: actions/setup-node@v4
with:
git_bot_token: ${{ secrets.GIT_BOT_TOKEN }}
node-version: 20
cache: 'pnpm'
- run: pnpm install --frozen-lockfile

- uses: nrwl/nx-set-shas@v4

Expand Down
7 changes: 0 additions & 7 deletions e2e/examples/lumberjack-app-e2e/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["src/plugins/index.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off",
"no-undef": "off"
}
}
]
}
10 changes: 9 additions & 1 deletion e2e/examples/lumberjack-app-e2e/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ import { defineConfig } from 'cypress';

export default defineConfig({
e2e: {
...nxE2EPreset(__dirname),
...nxE2EPreset(__filename, {
cypressDir: 'src',
webServerCommands: {
default: 'nx run examples-lumberjack-app:serve:development',
production: 'nx run examples-lumberjack-app:serve:production',
},
ciWebServerCommand: 'nx run examples-lumberjack-app:serve-static',
}),
baseUrl: 'http://localhost:4200',
},
});
32 changes: 1 addition & 31 deletions e2e/examples/lumberjack-app-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,5 @@
"projectType": "application",
"tags": ["scope:internal", "type:e2e"],
"implicitDependencies": ["examples-lumberjack-app"],
"targets": {
"e2e": {
"executor": "@nx/cypress:cypress",
"dependsOn": [
{
"target": "build",
"dependencies": true
}
],
"options": {
"cypressConfig": "e2e/examples/lumberjack-app-e2e/cypress.config.ts",
"devServerTarget": "examples-lumberjack-app:serve:development",
"testingType": "e2e"
},
"configurations": {
"production": {
"devServerTarget": "examples-lumberjack-app:serve:production"
}
}
},
"lint": {
"executor": "@nx/eslint:lint",
"configurations": {
"report": {
"format": "json",
"force": true,
"outputFile": "reports/e2e/examples/lumberjack-app-e2e/lint/report.json"
}
}
}
}
"targets": {}
}
9 changes: 2 additions & 7 deletions e2e/examples/lumberjack-app-e2e/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"sourceMap": false,
"outDir": "../../../dist/out-tsc",
"allowJs": true,
Expand All @@ -12,11 +13,5 @@
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src/**/*.ts", "src/**/*.js", "cypress.config.ts"],
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
"include": ["src/**/*.ts", "src/**/*.js", "cypress.config.ts"]
}
1 change: 0 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,5 @@
"projectSpecificFiles": []
},
"nxCloudAccessToken": "M2I0MTZlMmMtYmQ5ZC00ZDg1LWFjOTQtZjU5ZGFkYWM3YjM2fHJlYWQ=",
"useInferencePlugins": false,
"defaultBase": "main"
}

0 comments on commit b69208a

Please sign in to comment.