Skip to content

test trigger github actions workflow #1

test trigger github actions workflow

test trigger github actions workflow #1

name: Best Practices Assignment - Commit Phase
on:
push:
paths:
- 'ThePhasesOfCraftship/2_best_practice_first/deployment/assignment/end/**'
branches:
- main # or specify your desired branch
env:
PROJECT_PATH: 'ThePhasesOfCraftship/2_best_practice_first/deployment/assignment/end'
jobs:
lint-build-test-archive:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16.16
- name: Install
run: npm ci
working-directory: ${{ env.PROJECT_PATH }}
# - name: Lint
# run: npm run lint
- name: Build
run: npm run build
working-directory: ${{ env.PROJECT_PATH }}
- name: Test (core unit tests)
run: npm run test:unit
working-directory: ${{ env.PROJECT_PATH }}
- name: Archive Frontend
id: frontend-build
uses: actions/upload-artifact@v2
with:
name: frontend-build-latest
path: ./packages/frontend/dist
# Customize Artifact Retention Period
retention-days: 2
working-directory: ${{ env.PROJECT_PATH }}

Check failure on line 49 in .github/workflows/1-best-practices-assignment-commit.yml

View workflow run for this annotation

GitHub Actions / Best Practices Assignment - Commit Phase

Invalid workflow file

The workflow is not valid. .github/workflows/1-best-practices-assignment-commit.yml (Line: 49, Col: 9): Unexpected value 'working-directory'

Check failure on line 49 in .github/workflows/1-best-practices-assignment-commit.yml

View workflow run for this annotation

GitHub Actions / Best Practices Assignment - Commit Phase

Invalid workflow file

The workflow is not valid. .github/workflows/1-best-practices-assignment-commit.yml (Line: 49, Col: 9): Unexpected value 'working-directory'

Check failure on line 49 in .github/workflows/1-best-practices-assignment-commit.yml

View workflow run for this annotation

GitHub Actions / Best Practices Assignment - Commit Phase

Invalid workflow file

The workflow is not valid. .github/workflows/1-best-practices-assignment-commit.yml (Line: 49, Col: 9): Unexpected value 'working-directory'