mirror of
https://github.com/UofCBaja/BajaUofCWebsite.git
synced 2025-06-15 05:14:18 -06:00
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
# name of the workflow.
|
|
# this is optional.
|
|
name: Continuous Integration
|
|
|
|
# events that will trigger this workflow.
|
|
# here, we only have "pull_request", so the workflow will run
|
|
# whenever we create a pull request.
|
|
# other examples: [push] and [pull_request, push]
|
|
on:
|
|
pull_request:
|
|
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
# each workflow must have at least one job.
|
|
# jobs run in parallel by default (we can change that).
|
|
# each job groups together a series of steps to accomplish a purpose.
|
|
jobs:
|
|
# name of the job
|
|
first:
|
|
# the platform or OS that the workflow will run on.
|
|
runs-on: ubuntu-latest
|
|
|
|
# series of steps to finish the job.
|
|
steps:
|
|
# name of the step.
|
|
# steps run sequentially.
|
|
# this is optionale
|
|
- name: checkout
|
|
# each step can either have "uses" or "run".
|
|
# "uses" run an action written somewhere other than this workflow .
|
|
# usually from the community.
|
|
# this action checks out the repo code to the runner (instance)
|
|
# running the action
|
|
uses: actions/checkout@v3
|
|
|
|
# another step.
|
|
# this step runs a bash (Ubuntu's default shell) command
|
|
- name: list files
|
|
run: ls
|
|
|
|
Eslinter:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run ESLint
|
|
run: npm run lint
|