mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
4dfcc96746
* ci: Bump actions version * Update .github/workflows/eslint.yml Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update .github/workflows/eslint.yml Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --------- Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Frederico Santos <frederico.f.santos@tecnico.ulisboa.pt> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
name: ESLint
|
|
|
|
on:
|
|
# Trigger the workflow on push or pull request,
|
|
# but only for the main branch
|
|
push:
|
|
branches:
|
|
- main # Trigger on push events to the main branch
|
|
- beta # Trigger on push events to the beta branch
|
|
pull_request:
|
|
branches:
|
|
- main # Trigger on pull request events targeting the main branch
|
|
- beta # Trigger on pull request events targeting the beta branch
|
|
merge_group:
|
|
types: [checks_requested]
|
|
|
|
jobs:
|
|
run-linters: # Define a job named "run-linters"
|
|
name: Run linters # Human-readable name for the job
|
|
runs-on: ubuntu-latest # Specify the latest Ubuntu runner for the job
|
|
|
|
steps:
|
|
- name: Check out Git repository # Step to check out the repository
|
|
uses: actions/checkout@v4 # Use the checkout action version 4
|
|
|
|
- name: Set up Node.js # Step to set up Node.js environment
|
|
uses: actions/setup-node@v4 # Use the setup-node action version 4
|
|
with:
|
|
node-version: 20 # Specify Node.js version 20
|
|
|
|
- name: Install Node.js dependencies # Step to install Node.js dependencies
|
|
run: npm ci # Use 'npm ci' to install dependencies
|
|
|
|
- name: eslint # Step to run linters
|
|
run: npm run eslint-ci
|