Skip to content

Merge tag 'v1.33.1' into update/v1.33.1 #40

Merge tag 'v1.33.1' into update/v1.33.1

Merge tag 'v1.33.1' into update/v1.33.1 #40

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
name: Test
strategy:
matrix:
go-version: [1.19.x]
pg-version: ["13", "14"]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install PostgreSQL
uses: harmon758/postgresql-action@v1
with:
postgresql version: ${{ matrix.pg-version }}
postgresql db: gocommon_test
postgresql user: nyaruka
postgresql password: nyaruka
- name: Install Linux packages
run: sudo apt install -y --no-install-recommends pandoc
- name: Install Redis
uses: zhulik/redis-action@v1.0.0
with:
redis version: "6.2"
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Run tests
run: go test -p=1 -coverprofile=coverage.text -covermode=atomic ./...
- name: Upload coverage
if: success()
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true