Skip to content

Commit 1cebefe

Browse files
authored
Merge pull request #517 from bcorfman/deploychange
Ignore Playwright test files in deploy
2 parents fde380c + 82382da commit 1cebefe

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.railwayignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Playwright's WebKit compatibility links are only for local Linux test runs.
2+
# They point at host libraries that do not exist in Railway's build container;
3+
# excluding them also prevents Railway CLI indexing from following broken links.
4+
.playwright-lib-compat/
5+
6+
# These are not needed to build or run the Railway API.
7+
.git/
8+
node_modules/
9+
dist/
10+
test-results/
11+
playwright-report/

tests/deployment/workflow-config.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { describe, expect, it } from 'vitest';
33

44
const pagesWorkflow = readFileSync('.github/workflows/deploy-frontend-pages.yml', 'utf8');
55
const railwayWorkflow = readFileSync('.github/workflows/deploy-backend-railway.yml', 'utf8');
6+
const railwayIgnore = readFileSync('.railwayignore', 'utf8');
67

78
describe('deployment workflow contract', () => {
89
it('builds each Pages channel from its own API variable', () => {
@@ -26,4 +27,8 @@ describe('deployment workflow contract', () => {
2627
expect(railwayWorkflow).toContain('RAILWAY_SERVICE_ID: ${{ vars.RAILWAY_SERVICE_ID }}');
2728
expect(railwayWorkflow).toContain('RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}');
2829
});
30+
31+
it('excludes local-only broken compatibility links from Railway uploads', () => {
32+
expect(railwayIgnore).toContain('.playwright-lib-compat/');
33+
});
2934
});

0 commit comments

Comments
 (0)