change directory in all steps #7
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: Deploy website | |
on: | |
push: | |
branches: | |
- artifacts-outputs | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Code | |
uses: actions/checkout@v3 | |
- name: Folder content | |
working-directory: ./artifacts-outputs | |
run: ls | |
- name: Install dependencies | |
working-directory: ./artifacts-outputs | |
run: npm ci | |
- name: Lint Code | |
working-directory: ./artifacts-outputs | |
run: npm run lint | |
- name: Test code | |
working-directory: ./artifacts-outputs | |
run: npm run test | |
build: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Code | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
working-directory: ./artifacts-outputs | |
run: npm ci | |
- name: Build website | |
working-directory: ./artifacts-outputs | |
run: npm run build | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy | |
run: echo "Deploying..." | |