Skip to content

Add coverage to workflows #46

Add coverage to workflows

Add coverage to workflows #46

Workflow file for this run

name: TypeShell Windows
on: [ push ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Install dependencies
run: |
go get .
- name: Build
run: |
go build main.go
- name: Test
shell: cmd
run: |
go test ./tests -v -cover -coverprofile=coverage.out -coverpkg ./lexer,./parser,./transpiler || exit -1
go tool cover -html=coverage.out -o coverage.html
go tool cover -func=coverage.out