Merge pull request #6 from STEAMer-Academy/dependabot/npm_and_yarn/np⦠#16
This file contains hidden or 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: π Code Quality Checks | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - '**/*.md' | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - '**/*.md' | |
| jobs: | |
| lint: | |
| name: π§Ή Lint Code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π₯ Checkout Code | |
| uses: actions/checkout@v3 | |
| - name: π§ Set Up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| cache: 'npm' | |
| - name: π¦ Install Dependencies | |
| run: npm ci | |
| - name: π οΈ Run ESLint | |
| run: npm run lint | |
| test: | |
| name: β Run Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π₯ Checkout Code | |
| uses: actions/checkout@v3 | |
| - name: π§ Set Up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| cache: 'npm' | |
| - name: π¦ Install Dependencies | |
| run: npm ci | |
| - name: π§ͺ Run Jest Tests | |
| run: npm run test | |
| build: | |
| name: ποΈ Build Project | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π₯ Checkout Code | |
| uses: actions/checkout@v3 | |
| - name: π§ Set Up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| cache: 'npm' | |
| - name: π¦ Install Dependencies | |
| run: npm ci | |
| - name: π Build Project | |
| run: npm run build |