Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ name: Lint Codebase with Super Linter
on:
pull_request:
# target branch of PR
branches:
- test
paths-ignore:
- '.github/**'
- 'tools/**'
- '*.md'
branches: [test]
paths-ignore: ['.github/**','tools/**','*.md']

permissions: read-all

jobs:
lint:
Expand All @@ -18,6 +16,8 @@ jobs:
permissions:
contents: read
packages: read
statuses: write
checks: write

steps:
- name: Checkout repo
Expand All @@ -26,11 +26,10 @@ jobs:
# super-linter needs the full git history to get the list of files that changed across commits
fetch-depth: 0

#- name: Debug head_ref
# run: echo "src: ${{ github.head_ref }}"

- name: Run GitHub Super Linter
# latest as of 8/9/2025
uses: github/super-linter@v7.1.0
uses: super-linter/super-linter@v8.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FILTER_REGEX_INCLUDE: "nextjs/src/.*\\.ts$"
VALIDATE_ALL_CODEBASE: true
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Run Backend Tests

on:
pull_request:
branches: [main]
paths-ignore:
- '*.pdf'

permissions:
contents: read

jobs:
test:
# SKIP if PR is labeled with 'no-actions'
if: contains(join(github.event.pull_request.labels.*.name || '', ','), 'no-actions') == false
runs-on: ubuntu-latest

env:
NODE_ENV: test
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5 # for actions/cache

steps:
- name: Checkout Repo
uses: actions/checkout@v5

- name: Use Node.js
uses: actions/setup-node@v5
with:
node-version: 20
cache: 'npm'
cache-dependency-path: ./nextjs/package-lock.json
- name: Cd
run: cd nextjs
- name: Install Backend Depts
run: npm ci

- name: Run Backend Tests
run: npm run lint

3 changes: 3 additions & 0 deletions nextjs/src/lib/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ export class Primero {
this.index = 0;
}
}


// test github/workflows/lint (testing now)
Loading