chore(deps): update vitest monorepo to v2 #822
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: Main | |
on: [push] | |
jobs: | |
run-ci: | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
S3_REGION: us-west-1 | |
S3_ACCESS_KEY: root | |
S3_SECRET_KEY: password | |
S3_ENDPOINT: http://localhost:9000 | |
PG_CONNECTION_STRING: postgres://postgres:password@localhost:5432 | |
PG_DB: postgres | |
name: Run Type Check & Linters | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Set up PostgreSQL | |
uses: harmon758/postgresql-action@v1 | |
with: | |
postgresql version: '14' | |
postgresql user: postgres | |
postgresql password: password | |
- name: Setup minio | |
run: | | |
docker run -d -p 9000:9000 --name minio -e "MINIO_ROOT_USER=root" -e "MINIO_ROOT_PASSWORD=password" -v /tmp/data:/data -v /tmp/config:/root/.minio minio/minio server /data | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Check types | |
run: yarn type-check | |
- name: Check linting | |
run: yarn lint | |
- name: Run tests | |
run: yarn test:ci | |
- name: Build package | |
run: yarn build | |
- name: Setup examples | |
run: | | |
cd examples/next-upload-example | |
yarn install --frozen-lockfile | |
yarn link next-upload | |
yarn build |