mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
* ci: workflow to check sourcecode * fix: make workflow to check source fail for incorrect linting/formatting * ci: change step name for workflow to check sourcecode
27 lines
503 B
YAML
27 lines
503 B
YAML
name: Check the source code
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
jobs:
|
|
check_source_code:
|
|
name: Check the source code
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: 'yarn'
|
|
|
|
- name: Install dependencies
|
|
run: yarn install
|
|
|
|
- name: Check formatting
|
|
run: yarn format:check
|
|
|
|
- name: Lint
|
|
run: yarn lint
|