Check the formatting and code #3
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: Check the Program | |
run-name: Check the formatting and code | |
on: [push] | |
jobs: | |
check: | |
runs-on: ubuntu-24.04 | |
container: | |
image: node:20 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'yarn' | |
- name: Install the App | |
run: yarn install | |
shell: bash | |
- name: Check the formatting | |
run: yarn run prettier --check | |
shell: bash | |
- name: Lint the App | |
run: yarn lint | |
shell: bash | |
- name: Build the App | |
run: yarn Build | |
shell: bash | |
- name: Test the App | |
run: yarn test | |
shell: bash |