Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsontr authored Nov 4, 2023
1 parent 21f3afe commit d7bcca4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
runs-on: debian-10

strategy:
matrix:
Expand All @@ -31,7 +31,14 @@ jobs:
- name: Frontend Tests
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'master' || github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: cd client && npm run test && cd ..


deploy:
runs-on: debian-10

strategy:
matrix:
node-version: [16, 14.17.1]
steps:
- name: Deploy to Production
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/cicd_deploy' }}
uses: appleboy/ssh-action@v1.0.0
Expand Down

0 comments on commit d7bcca4

Please sign in to comment.