test(e2e): add chat users test #254
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: master builder | |
on: | |
pull_request: | |
push: | |
branches: [ master ] | |
paths: | |
- '**.go' | |
- 'go.mod' | |
- 'go.sum' | |
- '.github/workflows/*.yml' | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Golang env | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: go.mod | |
cache: false # conflict with golangci-lint cache | |
- name: lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54 | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Golang env | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Install Ginkgo | |
run: go install github.com/onsi/ginkgo/v2/ginkgo | |
- name: Build | |
run: go build | |
- name: Unit Test | |
run: go test -v $(go list ./... | grep -v /test) # skip e2e test | |
- name: E2E Test | |
run: ginkgo -v -r ./test |