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 d7bcca4 commit 17cd540
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ on: [push, pull_request]

jobs:
build:
runs-on: debian-10

strategy:
matrix:
node-version: [16, 14.17.1]
runs-on: debian:10

steps:
- name: Checkout
Expand All @@ -17,7 +13,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4.0.0
with:
node-version: ${{ matrix.node-version }}
node-version: 16

- name: Install client dependencies
run: cd client && npm install && cd ..
Expand All @@ -33,11 +29,9 @@ jobs:
run: cd client && npm run test && cd ..

deploy:
runs-on: debian-10

strategy:
matrix:
node-version: [16, 14.17.1]
runs-on: debian:10
needs:
- build
steps:
- name: Deploy to Production
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/cicd_deploy' }}
Expand Down

0 comments on commit 17cd540

Please sign in to comment.