Skip to content

Commit

Permalink
Fix yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
DustTheory committed Sep 10, 2024
1 parent 3651b26 commit cf9b83c
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,21 @@ on:
pull_request:
branches: [ "master" ]

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=./...
jobs:
build:
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
- 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

0 comments on commit cf9b83c

Please sign in to comment.