fix: fix log message #136
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: CI Workflow | |
on: [push] | |
jobs: | |
test_application: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Setup MySQL to run the tests | |
uses: mirromutth/[email protected] | |
with: | |
#host port: 3800 # Optional, default value is 3306. The port of host | |
#container port: 3307 # Optional, default value is 3306. The port of container | |
character set server: 'utf8' # Optional, default value is 'utf8mb4'. The '--character-set-server' option for mysqld | |
collation server: 'utf8_general_ci' # Optional, default value is 'utf8mb4_general_ci'. The '--collation-server' option for mysqld | |
mysql version: '8.0.22' | |
mysql database: 'boiler_db' | |
mysql root password: root | |
mysql user: 'root' | |
mysql password: root | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Run tests | |
run: make test | |
govulncheck: | |
runs-on: ubuntu-latest | |
name: Run govulncheck | |
steps: | |
- name: Checkout code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Running Vulnerability Check | |
run: | | |
go install golang.org/x/vuln/cmd/govulncheck@latest | |
govulncheck ./... |