name: CI on: push: {} pull_request: types: [opened, reopened] jobs: tests: runs-on: ubuntu-latest steps: - name: Set up Go uses: actions/setup-go@v4 with: go-version: '1.20' - uses: actions/checkout@v3 - name: Pull Postgres run: docker pull postgres:14.0 - name: Pull MariaDB run: docker pull mariadb:10.8 - name: Pull SQLServer run: docker pull mcr.microsoft.com/mssql/server:2022-latest - name: Check go version run: go version - name: Run linters run: go vet ./... && go install honnef.co/go/tools/cmd/staticcheck@latest && bash -c "$(go env GOPATH)/bin/staticcheck ./..." - name: Run Tests run: ./scripts/run-all-tests.sh - name: Run Coverage run: | curl -Os https://uploader.codecov.io/latest/linux/codecov chmod +x codecov ./codecov -t $CODECOV_TOKEN env: CODECOV_TOKEN: 36be8ba6-7ef1-4ec2-b607-67c1055a62ad