Very Popular
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768name: ci
on: [push, pull_request]
jobs: fmt: runs-on: ubuntu-latest continue-on-error: true steps: - uses: actions/checkout@v1 - name: Install Deno 1.x uses: denoland/setup-deno@v1 with: deno-version: v1.x - name: Check fmt run: deno fmt --check test: runs-on: ubuntu-latest strategy: matrix: DENO_VERSION: - v1.x DB_VERSION: - mysql:5.5 - mysql:5.6 - mysql:5.7 - mysql:8 - mysql:latest - mariadb:5.5 - mariadb:10.0 - mariadb:10.1 - mariadb:10.2 - mariadb:10.3 - mariadb:10.4 - mariadb:latest
steps: - uses: actions/checkout@v1 - name: Install Deno ${{ matrix.DENO_VERSION }} uses: denoland/setup-deno@v1 with: deno-version: ${{ matrix.DENO_VERSION }} - name: Show Deno version run: deno --version - name: Start ${{ matrix.DB_VERSION }} run: | sudo mkdir -p /var/run/mysqld/tmp sudo chmod -R 777 /var/run/mysqld docker container run --rm -d -p 3306:3306 \ -v /var/run/mysqld:/var/run/mysqld \ -v /var/run/mysqld/tmp:/tmp \ -e MYSQL_ALLOW_EMPTY_PASSWORD=true \ ${{ matrix.DB_VERSION }} ./.github/workflows/wait-for-mysql.sh - name: Run tests (TCP) run: | deno test --allow-env --allow-net=127.0.0.1:3306 ./test.ts - name: Run tests (--unstable) (UNIX domain socket) run: | SOCKPATH=/var/run/mysqld/mysqld.sock if [[ "${{ matrix.DB_VERSION }}" == "mysql:5.5" ]]; then SOCKPATH=/var/run/mysqld/tmp/mysql.sock fi DB_SOCKPATH=$SOCKPATH TEST_METHODS=unix \ deno test --unstable --allow-env --allow-net=127.0.0.1:3306 \ --allow-read=/var/run/mysqld/ --allow-write=/var/run/mysqld/ \ ./test.ts