Skip to content

chore: Add golangci-lint and codecov #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add golangci-lint and codecov GitHub Actions
  • Loading branch information
kylecarbs committed Jan 4, 2022
commit adba002c74a642cd98c8c61c8cb6f0a684835850
28 changes: 25 additions & 3 deletions .github/workflows/coder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ permissions:
statuses: none

jobs:
lint:
name: lint/golangci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest

style:
name: "style/${{ matrix.style }}"
runs-on: ubuntu-latest
Expand Down Expand Up @@ -81,9 +91,21 @@ jobs:
with:
go-version: "^1.17"

# Check that go is available
# TODO: Implement actual test run
- run: go version
- run: go install gotest.tools/gotestsum@latest

- run: |
gotestsum \
--jsonfile="gotests.json" \
--packages="./..." \
-- \
-covermode=atomic \
-coverprofile="gotests.coverage"

- uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./gotests.coverage
fail_ci_if_error: true

test-js:
name: "test/js"
Expand Down