build(deps): bump github.com/go-co-op/gocron from 1.17.1 to 1.34.2 #464
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v2 | |
- uses: actions/checkout@v2 | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
with: | |
args: --timeout=10m --skip-dirs=testdata --tests=false | |
tests: | |
name: "Golang ${{ matrix.go-version }} ${{ matrix.os }}" | |
runs-on: "${{ matrix.os }}" | |
strategy: | |
matrix: | |
go-version: ['1.18', '1.19'] | |
os: [ubuntu-latest] | |
services: | |
mysql: | |
image: mysql:8.0 | |
env: | |
MYSQL_ROOT_PASSWORD: root | |
ports: | |
- 3306:3306 | |
rabbitmq: | |
image: rabbitmq:3.8 | |
env: | |
RABBITMQ_DEFAULT_USER: guest | |
RABBITMQ_DEFAULT_PASS: guest | |
ports: | |
- 5672:5672 | |
options: >- | |
--health-cmd "rabbitmqctl node_health_check" | |
--health-interval 10s | |
--health-start-period 10s | |
--health-timeout 10s | |
--health-retries 10 | |
redis-server: | |
image: redis | |
ports: | |
- 6379:6379 | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
env: | |
DB_DATABASE: gobay | |
DB_USER: root | |
DB_PASSWORD: "root" | |
GOENV_VERSION: "${{ matrix.go-version }}" | |
steps: | |
- name: Set up MySQL | |
run: | | |
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} -h 127.0.0.1 | |
- name: Check out code into Go module directory | |
uses: actions/checkout@v2 | |
- name: Set up golang ${{ matrix.go-version }} | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Go mod package cache | |
uses: actions/cache@v2 | |
with: | |
path: $GOPATH/pkg/mod | |
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | |
- name: Run tests | |
run: | | |
go test -v -count=1 ./... |