Added CI to enforce linting and type checking. #8
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: CI | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
code_quality: | |
runs-on: ubuntu-latest | |
container: | |
image: fedora:latest | |
steps: | |
- name: Install Node.js and npm | |
run: | | |
sudo dnf install -y nodejs npm | |
- name: Install dnf-plugins-core | |
run: | | |
sudo dnf install -y 'dnf-command(copr)' | |
- name: Enable COPR for ags | |
run: | | |
sudo dnf copr enable solopasha/hyprland -y | |
- name: Install ags | |
run: | | |
sudo dnf install -y aylurs-gtk-shell which | |
- name: Initialize ags types | |
run: sudo ags --init | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Node.js Dependencies | |
run: npm install | |
- name: Run ESLint | |
run: npm run lint | |
- name: Run Type Check - Extended Diagnostics | |
run: npx tsc --noEmit --pretty --extendedDiagnostics |