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 069e420 commit 1e49a64
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ jobs:
- setup_stage
runs-on: ubuntu-latest
steps:
- 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
run: |
cd client
Expand Down Expand Up @@ -48,9 +55,9 @@ jobs:
npm install
cd ..
testing:
client_testing:
needs:
- Client-Build
- client_build
runs-on: ubuntu-latest
steps:
- name: Frontend Tests
Expand All @@ -59,3 +66,25 @@ jobs:
cd client
npm run test
cd ..
server_testing:
needs:
- server_dependencies
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 1e49a64

Please sign in to comment.