Merge pull request #2 from armanalam03/f/armaan-posts #14
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: '0 0 * * 1' # Runs every Monday at midnight UTC | |
jobs: | |
lint-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.11.1 | |
- name: Install dependencies | |
run: yarn install | |
- name: Run ESLint | |
run: yarn lint | |
- name: Run Prettier | |
run: yarn prettier -- --check . | |
- name: Check for TypeScript errors | |
run: yarn tsc --noEmit | |
- name: Run tests | |
run: yarn test |