Skip to content

Commit 55fe28e

Browse files
committed
Introduce GH action
1 parent c867aad commit 55fe28e

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/go.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Go test
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
pull_request:
7+
branches: ['main']
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: heussd/pdftotext-go@main

Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM golang:1.22.0-alpine3.18
2+
3+
RUN apk add --no-cache --update poppler-utils
4+
5+
WORKDIR /app
6+
7+
COPY testdata ./testdata
8+
COPY go.* ./
9+
COPY *.go ./
10+
11+
RUN go test -v

0 commit comments

Comments
 (0)