Unify item and group data structures #430
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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
name: Test and lint | |
on: | |
push: | |
branches: [ "main", "v[0-9]+.[0-9]+.x", "v[0-9]+.x" ] | |
pull_request: | |
branches: [ "main", "v[0-9]+.[0-9]+.x", "v[0-9]+.x" ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 22.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
cache: 'npm' | |
- run: npm ci | |
- name: Set up .env | |
run: cp .env.example .env | |
- name: Run test suite | |
run: npm test | |
- name: Show server output | |
if: always() | |
run: cat server.log | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 22.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
cache: 'npm' | |
- run: npm ci | |
- name: Run linting | |
run: npm run lint | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 22.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
cache: 'npm' | |
- run: npm ci | |
- name: Run type-checking | |
run: npm run check |