chore: don't rely on custom fns jsonb_array_max, jsonb_array_avg #31
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: Run Tests | |
# This workflow is triggered on pushes to the repository. | |
on: | |
push: | |
workflow_dispatch: | |
env: | |
NO_COLOR: true | |
CI: 1 | |
NEXT_TELEMETRY_DISABLED: 1 | |
jobs: | |
build: | |
name: Test | |
timeout-minutes: 30 | |
runs-on: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
# Note: setup yarn is based on https://github.com/actions/setup-node/issues/182#issuecomment-978176609 | |
- name: Setup yarn | |
run: | | |
mkdir -p ~/.local/bin | |
curl -fsSL \ | |
https://github.com/yarnpkg/yarn/releases/download/v1.22.18/yarn-1.22.18.js > ~/.local/bin/yarn | |
chmod +x ~/.local/bin/yarn | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'yarn' | |
- name: Turnstyle | |
uses: softprops/turnstyle@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Dependencies | |
run: yarn install | |
- name: Run Lint | |
run: yarn lint | |
- name: Run Tests | |
run: yarn test |