Skip to content

ar(feat) 2024 2nd semester rebase. #18

ar(feat) 2024 2nd semester rebase.

ar(feat) 2024 2nd semester rebase. #18

Workflow file for this run

name: nyx::checks
on:
pull_request:
branches:
- dev
- dev/*
- main
- main/*
jobs:
run-build:
name: nyx::checks::build
runs-on: ubuntu-latest
steps:
- name: nyx::checks::build::Check out Git repository
uses: actions/checkout@v3
- name: nyx::checks::build::Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20
- name: nyx::checks::build::Install Node.js dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: nyx::checks::build::Build
run: npm run build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MONGODB_URI: ${{ secrets.MONGODB_URI }}
EMAIL_SERVER: ${{ secrets.EMAIL_SERVER }}
EMAIL_FROM: ${{ secrets.EMAIL_FROM }}
run-lint:
name: nyx::checks::lint
runs-on: ubuntu-latest
steps:
- name: nyx::checks::lint::Check out Git repository
uses: actions/checkout@v3
- name: nyx::checks::lint::Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20
# ESLint and Prettier must be in `package.json`
- name: nyx::checks::lint::Install Node.js dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: nyx::checks::lint::Run linters
run: npm run format