chore: add appID to verify phone payload #62
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: Test | |
on: [push] | |
env: | |
DOCKER_BUILDKIT: 1 # Enable Buildkit and let compose use it to speed up image building | |
COMPOSE_DOCKER_CLI_BUILD: 1 | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
PORT: ${{ secrets.PORT }} | |
IS_RUNNING_TESTS: ${{ secrets.IS_RUNNING_TESTS }} | |
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | |
GOOGLE_CLOUD_PROJECT: ${{ secrets.GOOGLE_CLOUD_PROJECT }} | |
FIREBASE_WEB_API_KEY: ${{ secrets.FIREBASE_WEB_API_KEY }} | |
ROOT_COLLECTION_SUFFIX: ${{ secrets.ROOT_COLLECTION_SUFFIX }} | |
ENVIRONMENT: ${{ secrets.ENVIRONMENT }} | |
JWT_KEY: ${{ secrets.JWT_KEY }} | |
jobs: | |
lint_and_test: | |
strategy: | |
matrix: | |
go-version: [1.21.x] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 80 | |
steps: | |
- uses: actions/[email protected] | |
- uses: "google-github-actions/auth@v2" | |
with: | |
credentials_json: "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}" | |
project_id: ${{ secrets.GOOGLE_CLOUD_PROJECT }} | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install Go dependencies | |
run: | | |
go install github.com/axw/gocov/gocov@latest | |
go install github.com/securego/gosec/v2/cmd/gosec@latest | |
go install github.com/ory/go-acc@latest | |
- name: Run lint and test | |
run: | | |
gosec -exclude=G304,G101 ./... | |
go-acc -o coverage.txt --ignore generated,cmd ./... -- -timeout 60m | |
grep -v "generated.go" coverage.txt > coverage.out | |
gocov convert coverage.out > coverage.json | |
gocov report coverage.json > coverage_report.txt | |
tail coverage_report.txt | |
- name: Install goveralls | |
env: | |
GO111MODULE: off | |
run: go get github.com/mattn/goveralls | |
- name: Send coverage | |
env: | |
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: goveralls -coverprofile=coverage.out -service=github |