Skip to content

Commit

Permalink
la
Browse files Browse the repository at this point in the history
  • Loading branch information
volesh committed May 3, 2024
1 parent 30d6d17 commit a126c5b
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI/CD
on: "push"

jobs:
test:
Tests:
runs-on: ubuntu-latest
name: Run Jest tests
steps:
Expand All @@ -14,15 +14,13 @@ jobs:
- run: npm ci
- run: npm run test

deploy:
needs: test
runs-on: ubuntu-latest
name: Deploy to Cloudflare Workers
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm ci
- run: npm run test
# DESCRIBE DEPLOYMENT HERE

# deploy:
# needs: Tests
# runs-on: ubuntu-latest
# name: Deploy project
# if: github.ref == 'refs/heads/main'
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3

0 comments on commit a126c5b

Please sign in to comment.