github.com/kunlun-qilian/sqlx/v2@v2.24.0/.github/workflows/test.yaml (about) 1 name: test 2 on: 3 push: 4 branches: 5 - v2 6 pull_request: 7 8 jobs: 9 test: 10 runs-on: ubuntu-latest 11 services: 12 postgres: 13 image: docker.io/mdillon/postgis:10 14 env: 15 POSTGRES_PASSWORD: "" 16 ports: 17 - 5432:5432 18 mysql: 19 image: docker.io/library/mysql:5.7 20 env: 21 MYSQL_ALLOW_EMPTY_PASSWORD: "1" 22 ports: 23 - 3306:3306 24 steps: 25 - uses: actions/checkout@v2 26 - uses: actions/setup-go@v2 27 with: 28 go-version: '^1.17' 29 30 - run: make cover 31 32 - uses: codecov/codecov-action@v2 33 with: 34 file: ./coverage.txt 35 flags: unittests