Skip to content

Commit

Permalink
Merge branch 'main' into update-conv
Browse files Browse the repository at this point in the history
  • Loading branch information
apardods committed Jan 10, 2025
2 parents df1e2cb + e245ea9 commit b258144
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 3 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: "0" # make sure we get all commits!

Expand All @@ -26,5 +26,19 @@ jobs:
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_BRANCHES: release
RELEASE_BRANCHES: main
WITH_V: true

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 6 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,9 @@ jobs:
run: go mod download

- name: Test
run: go test -tags unit -race ./...
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
37 changes: 37 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
before:
hooks:
- go mod download
builds:
- id: gobl.xinvoice
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
main: ./cmd/gobl.xinvoice
binary: gobl.xinvoice

archives:
- id: gobl.xinvoice
builds:
- gobl.xinvoice
format: tar.gz
name_template: "gobl.xinvoice_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: true

checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
github:
owner: invopop
name: gobl.xinvoice
prerelease: auto
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

GOBL conversion into and from Factur-X (FR) and XRechnung/ZUGFeRD (DE) formats.

[![codecov](https://codecov.io/gh/invopop/gobl.xinvoice/graph/badge.svg?token=TMW8MWSZ9P)](https://codecov.io/gh/invopop/gobl.xinvoice)

Copyright [Invopop Ltd.](https://invopop.com) 2024. Released publicly under the [Apache License Version 2.0](LICENSE). For commercial licenses please contact the [dev team at invopop](mailto:[email protected]). In order to accept contributions to this library we will require transferring copyrights to Invopop Ltd.

## Usage
Expand Down

0 comments on commit b258144

Please sign in to comment.