Skip to content

add test case

add test case #7

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Run coverage
run: go test -race -coverprofile=coverage.txt -covermode=atomic
with:

Check failure on line 26 in .github/workflows/go.yml

View workflow run for this annotation

GitHub Actions / Go

Invalid workflow file

The workflow is not valid. .github/workflows/go.yml (Line: 26, Col: 7): Unexpected value 'with'
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CF_API_TOKEN : ${{ secrets.CF_API_TOKEN }}
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: mojocn/sseread