build: Add goreleaser #66
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: mysql | |
on: [push, pull_request] | |
jobs: | |
mariadb: | |
name: mariadb v10.6 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Build environment and run tests | |
run: make -f ci.Makefile ci-mariadb-up | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
files: /tmp/cover.out,/tmp/cover_driver.out | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true | |
- name: Teardown | |
run: make -f ci.Makefile ci-mariadb-down | |
mysql_v57: | |
name: mysql v5.7 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Build environment and run tests | |
run: make -f ci.Makefile ci-mysql57-up | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
files: /tmp/cover.out,/tmp/cover_driver.out | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true | |
- name: Teardown | |
run: make -f ci.Makefile ci-mysql57-down | |
mysql_v8: | |
name: mysql v8.0 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Build environment and run tests | |
run: make -f ci.Makefile ci-mysql8-up | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
files: /tmp/cover.out,/tmp/cover_driver.out | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true | |
- name: Teardown | |
run: make -f ci.Makefile ci-mysql8-down |