Skip to content

Commit

Permalink
Merge pull request #2 from ulyssessouza/add-codecov
Browse files Browse the repository at this point in the history
Add Codecov
  • Loading branch information
ulyssessouza authored Mar 19, 2024
2 parents f79cdfb + 7277f1a commit 30aec9d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5.0.0
with:
go-version: '1.21'

Expand All @@ -23,4 +23,10 @@ jobs:
gotestsum_version: '1.11.0'

- name: Test
run: gotestsum --format testname ./...
run: make test

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: ulyssessouza/envlang
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
parser
coverage.out
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ all: clean gen test
@echo "All done!"

test:
@gotestsum --format testname -- -failfast ./...
@gotestsum --format testname -- -failfast -race -covermode=atomic -coverprofile=coverage.out ./...

gen:
@antlr4 -Dlanguage=Go -o gen/fileparser -package fileparser EnvLangFile.g4
Expand Down

0 comments on commit 30aec9d

Please sign in to comment.