chore(deps): update dependency turbo to v2 #3634
This file contains hidden or 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: Continuous Unit Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build_tests: | |
| name: Compile Provider Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 | |
| - name: Setup Node | |
| uses: josh-development/.github/setup-node@main | |
| with: | |
| turbo: true | |
| - name: Install Dependencies | |
| run: yarn --immutable | |
| - name: Build Tests | |
| run: yarn build -F tests | |
| - name: Store Built Tests | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: dist-tests | |
| path: tests/dist | |
| json: | |
| name: JSONProvider | |
| needs: [build_tests] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 | |
| - name: Setup Node | |
| uses: josh-development/.github/setup-node@main | |
| with: | |
| turbo: true | |
| - name: Download Tests | |
| uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 | |
| with: | |
| name: dist-tests | |
| path: tests/dist | |
| - name: Run Tests | |
| run: yarn workspace @joshdb/json run test | |
| - name: Store Code Coverage Report | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: coverage-json | |
| path: coverage/ | |
| map: | |
| name: MapProvider | |
| needs: [build_tests] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 | |
| - name: Setup Node | |
| uses: josh-development/.github/setup-node@main | |
| with: | |
| turbo: true | |
| - name: Download Tests | |
| uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 | |
| with: | |
| name: dist-tests | |
| path: tests/dist | |
| - name: Run Tests | |
| run: yarn workspace @joshdb/map run test | |
| - name: Store Code Coverage Report | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: coverage-map | |
| path: coverage/ | |
| maria: | |
| name: MariaProvider | |
| needs: [build_tests] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 | |
| - name: Setup Node | |
| uses: josh-development/.github/setup-node@main | |
| with: | |
| turbo: true | |
| - name: Shutdown MySQL | |
| run: sudo service mysql stop | |
| - name: Setup MariaDB | |
| id: mysql | |
| uses: shogo82148/actions-setup-mysql@v1 | |
| with: | |
| distribution: 'mariadb' | |
| database: 'josh' | |
| user: 'josh' | |
| password: 'josh' | |
| - name: Create database | |
| run: mysql -ujosh -pjosh --socket ${{ steps.mysql.outputs.base-dir }}/tmp/mysql.sock -e 'CREATE DATABASE IF NOT EXISTS josh;' | |
| - name: Download Tests | |
| uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 | |
| with: | |
| name: dist-tests | |
| path: tests/dist | |
| - name: Run Tests | |
| run: yarn workspace @joshdb/maria run test | |
| - name: Store Code Coverage Report | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: coverage-maria | |
| path: coverage/ | |
| mongo: | |
| name: MongoProvider | |
| needs: [build_tests] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 | |
| - name: Setup Node | |
| uses: josh-development/.github/setup-node@main | |
| with: | |
| turbo: true | |
| - name: Start Mongo Database | |
| uses: supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # 1.12.0 | |
| with: | |
| mongodb-version: 5.0 | |
| - name: Download Tests | |
| uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 | |
| with: | |
| name: dist-tests | |
| path: tests/dist | |
| - name: Run Tests | |
| run: yarn workspace @joshdb/mongo run test | |
| - name: Store Code Coverage Report | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: coverage-mongo | |
| path: coverage/ | |
| postgresql: | |
| name: PostgreSQLProvider | |
| needs: [build_tests] | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres | |
| env: | |
| POSTGRES_HOST_AUTH_METHOD: trust | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 | |
| - name: Setup Node | |
| uses: josh-development/.github/setup-node@main | |
| with: | |
| turbo: true | |
| - name: Download Tests | |
| uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 | |
| with: | |
| name: dist-tests | |
| path: tests/dist | |
| - name: Run Tests | |
| run: yarn workspace @joshdb/postgresql run test --coverage | |
| - name: Store Code Coverage Report | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: coverage-postgresql | |
| path: coverage/ | |
| redis: | |
| name: RedisProvider | |
| needs: [build_tests] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 | |
| - name: Setup Node | |
| uses: josh-development/.github/setup-node@main | |
| with: | |
| turbo: true | |
| - name: Start Redis Instance | |
| uses: supercharge/redis-github-action@ea9b21c6ecece47bd99595c532e481390ea0f044 # 1.8.0 | |
| with: | |
| redis-version: 6 | |
| - name: Download Tests | |
| uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 | |
| with: | |
| name: dist-tests | |
| path: tests/dist | |
| - name: Run Tests | |
| run: yarn workspace @joshdb/redis run test --coverage | |
| - name: Store Code Coverage Report | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: coverage-redis | |
| path: coverage/ | |
| sqlite: | |
| name: SQLiteProvider | |
| needs: [build_tests] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 | |
| - name: Setup Node | |
| uses: josh-development/.github/setup-node@main | |
| with: | |
| turbo: true | |
| - name: Download Tests | |
| uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 | |
| with: | |
| name: dist-tests | |
| path: tests/dist | |
| - name: Run Tests | |
| run: yarn workspace @joshdb/sqlite run test --coverage | |
| - name: Store Code Coverage Report | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: coverage-sqlite | |
| path: coverage/ | |
| upload-coverage-report: | |
| name: Upload Code Coverage Report | |
| needs: [json, map, maria, mongo, postgresql, redis, sqlite] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 | |
| with: | |
| fetch-depth: 2 | |
| - name: Download Coverage Report | |
| uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 | |
| with: | |
| path: coverage/ | |
| pattern: coverage-* | |
| merge-multiple: true | |
| - name: Codecov Upload | |
| uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| directory: coverage/ | |
| fail_ci_if_error: true |