File: test.yml

package info (click to toggle)
usql 0.19.19-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,652 kB
  • sloc: sql: 1,115; sh: 643; ansic: 191; makefile: 60
file content (58 lines) | stat: -rw-r--r-- 1,454 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
on: [push, pull_request]
name: Test usql
jobs:
  test:
    name: Build and Test usql
    runs-on: ubuntu-24.04
    services:
      cassandra:
        image: docker.io/usql/cassandra:latest
        ports:
          - 9042:9042
      postgres:
        image: docker.io/usql/postgres:latest
        env:
          POSTGRES_PASSWORD: P4ssw0rd
        ports:
          - 5432:5432
      mysql:
        image: docker.io/library/mariadb
        env:
          MYSQL_ROOT_PASSWORD: P4ssw0rd
        ports:
          - 3306:3306
      sqlserver:
        image: mcr.microsoft.com/mssql/server:2022-latest
        env:
          ACCEPT_EULA: Y
          MSSQL_PID: Express
          SA_PASSWORD: Adm1nP@ssw0rd
        ports:
          - 1433:1433
    steps:
    - name: Install Go
      uses: actions/setup-go@v5
      with:
        go-version: stable
    - name: Install Packages
      run: |
        sudo apt-get -qq update
        sudo apt-get install -y build-essential libicu-dev unixodbc unixodbc-dev
    - name: Checkout code
      uses: actions/checkout@v4
    - name: Unit Tests
      run: |
        go test -v ./stmt
    - name: Build with all drivers
      run: |
        ./build.sh -b -t all
    - name: Shell Tests
      run: |
        go run testcli.go &> output.log
        ls -alh output.log
    - name: Archive output
      uses: actions/upload-artifact@v4
      with:
        name: output
        path: output.log
        if-no-files-found: error