Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
14 changes: 13 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: CI

on: [pull_request, workflow_dispatch]
on:
pull_request:
workflow_dispatch:
push:
branches:
- main

jobs:
main:
Expand All @@ -26,8 +31,15 @@ jobs:
- name: Test
run: make test

- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage
path: coverage.out

config:
name: Check GoReleaser config
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ lint: lint-golangci-lint lint-yamllint
# Test
test:
@echo ">> Running tests for the CLI application"
@go test ./... -count=1
@go test ./... -count=1 -coverprofile=coverage.out

# Test coverage
coverage:
Expand Down
Loading