Skip to content

Merge pull request #1 from devblac/codex/restore-cli-entry-point-for-… #3

Merge pull request #1 from devblac/codex/restore-cli-entry-point-for-…

Merge pull request #1 from devblac/codex/restore-cli-entry-point-for-… #3

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Run tests with coverage
run: go test ./... -coverprofile=coverage.out
- name: Upload coverage to Codecov
if: env.CODECOV_TOKEN != ''
uses: codecov/codecov-action@v4
with:
token: ${{ env.CODECOV_TOKEN }}
files: coverage.out
fail_ci_if_error: true
verbose: true