try parse msg timestamp from courier or set to now #263
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, pull_request] | |
env: | |
go-version: '1.17.x' | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: Install Redis | |
uses: zhulik/redis-action@v1.0.0 | |
with: | |
redis version: '5' | |
- name: Install Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: ${{ env.go-version }} | |
- name: Start MongoDB | |
uses: supercharge/mongodb-github-action@1.7.0 | |
with: | |
mongodb-version: 5.0.8 | |
mongodb-username: admin | |
mongodb-password: admin | |
mongodb-db: weni-web-chat | |
- name: Lint gofmt | |
run: gofmt -d . | |
- name: Run tests | |
env: | |
WWC_S3_ACCESS_KEY: ${{ secrets.WWC_S3_ACCESS_KEY }} | |
WWC_S3_SECRET_KEY: ${{ secrets.WWC_S3_SECRET_KEY }} | |
WWC_S3_ENDPOINT: ${{ secrets.WWC_S3_ENDPOINT }} | |
WWC_S3_REGION: ${{ secrets.WWC_S3_REGION }} | |
WWC_S3_BUCKET: ${{ secrets.WWC_S3_BUCKET }} | |
run: go test -p=1 -coverprofile=coverage.text -covermode=atomic ./... | |
- name: Upload coverage | |
if: success() | |
uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: false |