chore: fixed a couple of threshold issues on calendar #353
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
name: Test Workflow | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
test-and-benchmark: | |
name: Test and Benchmark | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
env: | |
LOGGER_LEVEL: error | |
steps: | |
- name: Git - Checkout | |
uses: actions/checkout@v4 | |
- name: Node - Setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Prepare environment variables | |
run: cp -f .env.local.example .env.local | |
- name: Docker compose - Build & start the containers | |
run: docker compose --file ./docker/compose.yaml up -d | |
- name: pnpm - Setup | |
uses: pnpm/action-setup@v2 | |
with: | |
run_install: false | |
# TODO: not working with cypress at the moment | |
# - name: pnpm - Store path | |
# shell: bash | |
# run: | | |
# echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
# - name: pnpm - Setup Cache | |
# uses: actions/cache@v3 | |
# with: | |
# path: ${{ env.STORE_PATH }} | |
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
# restore-keys: | | |
# ${{ runner.os }}-pnpm-store- | |
# We need this hack-y workaround to make sure the postinstall script is run correctly. | |
# Tried disabling post-install scripts, but that causes another issue down the line. | |
- name: pnpm - Workaround | |
run: | | |
pnpm add -g opencollective | |
- name: pnpm - Install | |
run: pnpm install | |
- name: pnpm - Lint | |
run: pnpm lint | |
- name: pnpm - Format Check | |
run: pnpm format:check | |
- name: pnpm - Build | |
run: pnpm build | |
- name: pnpm - CLI - Database Reload | |
run: pnpm cli database:reload | |
- name: pnpm - Test | |
run: pnpm test | |
# Disabled temporarily again, as for some reason it gets stuck here on GitHub actions. | |
# - name: pnpm - E2E | |
# run: pnpm e2e |