Skip to content

Commit 4f208be

Browse files
committed
Set up CI/CD workflows for testing and deployment
- Add 'Tests' workflow to run unit tests on push to main and pull requests - Add 'Deploy' workflow to deploy to Railway after successful tests - Configure database migrations and Railway CLI in deployment process
1 parent d3208c7 commit 4f208be

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install Railway CLI
2121
run: pnpm add --global @railway/cli
2222
- name: Deploy to Railway
23-
run: railway up --service="nestjs-starter"
23+
run: railway up --service="url-shortener"
2424
env:
2525
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
2626
REDIS_URL: ${{ secrets.REDIS_URL }}

.github/workflows/test.yml

-11
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,3 @@ jobs:
1414
- uses: ./.github/actions/build
1515
- name: Run tests
1616
run: pnpm test
17-
18-
e2e-tests:
19-
runs-on: ubuntu-latest
20-
steps:
21-
- uses: actions/checkout@v3
22-
- uses: ./.github/actions/build
23-
- name: Run tests
24-
run: pnpm test:e2e
25-
env:
26-
POSTGRES_USER: username
27-
POSTGRES_PASSWORD: password

0 commit comments

Comments
 (0)