Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Add test coverate workflow #1

Add test coverate workflow

Add test coverate workflow #1

Workflow file for this run

name: Go test coverage check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- name: generate test coverage
run: go test ./ast ./lexer ./parser ./runtime ./compiler -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
- name: check test coverage
uses: vladopajic/go-test-coverage@v2
with:
profile: cover.out
local-prefix: github.com/DustTheory/interpreter/
threshold-file: 80
threshold-package: 80
threshold-total: 95