Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsontr authored Oct 30, 2023
1 parent 4eff3a7 commit 1b37620
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ jobs:
- setup_stage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.6.0
- uses: actions/setup-node@v3.8.2
- name: Checkout
uses: actions/checkout@v3.6.0

- name: Setup Node
uses: actions/setup-node@v3.8.2
with:
node-version: "16"
- name: Install client dependencies
Expand Down Expand Up @@ -52,7 +55,7 @@ jobs:
npm install
cd ..
testing:
client_testing:
needs:
- client_build
runs-on: ubuntu-latest
Expand All @@ -63,3 +66,25 @@ jobs:
cd client
npm run test
cd ..
server_testing:
needs:
- client_build
runs-on: ubuntu-latest
steps:
- 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: |
echo "TBD"
deploy:
if: ${{ github.event_name == 'push' && github.event.pull_request.base.ref == 'deploy' || github.event_name == 'push' && github.ref == 'refs/heads/deploy' }}
needs:
- client_testing
- server_testing
runs-on: ubuntu-latest
steps:
- name: SSH Server
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'master' || github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: |
echo "TBD"

0 comments on commit 1b37620

Please sign in to comment.