Update actions/setup-node action to v4 #839
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: main | |
on: [push, pull_request] | |
jobs: | |
setup_stage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3.6.0 | |
- name: Setup Node | |
uses: actions/setup-node@v4.0.0 | |
with: | |
node-version: "16" | |
client_dependencies: | |
needs: | |
- setup_stage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3.6.0 | |
- name: Setup Node | |
uses: actions/setup-node@v4.0.0 | |
with: | |
node-version: "16" | |
- name: Install client dependencies | |
run: | | |
cd client | |
npm install | |
cd .. | |
client_build: | |
needs: | |
- client_dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- name: Build client | |
run: | | |
cd client | |
npm run build | |
cd .. | |
server_dependencies: | |
needs: | |
- setup_stage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install server dependencies | |
run: | | |
cd server | |
npm install | |
cd .. | |
client_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: | | |
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" |