mirror of
https://codeberg.org/scip/epuppy.git
synced 2025-12-16 12:01:00 +01:00
* fix #3: added h ui command to toggle ui * fix #4: added -N flag to disable colors * fixed styling of line numbers (-n) * fix #5 add usage section * add pkg/epub module readme * add license terms to all file headers * fixed usage printing * added basic unit tests * run the tests only on linux due to the use of base64 utitlity
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
name: build-and-test
|
|
on: [push]
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
version: [1.24.9]
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
name: Build
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Set up Go ${{ matrix.os }}
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: '${{ matrix.version }}'
|
|
id: go
|
|
|
|
- name: checkout
|
|
uses: actions/checkout@v5
|
|
|
|
- name: build
|
|
run: go build
|
|
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
version: [1.24.9]
|
|
os: [ubuntu-latest]
|
|
name: Test
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Set up Go ${{ matrix.os }}
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: '${{ matrix.version }}'
|
|
id: go
|
|
|
|
- name: checkout
|
|
uses: actions/checkout@v5
|
|
|
|
- name: test
|
|
run: go test -cover ./...
|
|
|
|
|
|
golangci:
|
|
name: Lintercheck
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version: 1.24
|
|
- uses: actions/checkout@v5
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v8
|