Initial code: supporting 'load' and 'diff' commands #14
Workflow file for this run
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: Go package | |
on: [push, pull_request] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
env: | |
DB_DATABASE: test | |
DB_USER: root | |
DB_PASSWORD: root | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
- name: Build | |
run: make build | |
- name: Lint | |
run: make lint | |
- name: Unit test | |
run: make test | |
- name: Start local MySQL | |
run: sudo /etc/init.d/mysql start | |
- name: MySQL Test | |
run: | | |
export PATH="$PATH:bin" | |
script/ci-github.sh |