Skip to content

Commit

Permalink
Introduce GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
heussd committed Mar 5, 2024
1 parent c867aad commit 55fe28e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Go test

on:
push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: heussd/pdftotext-go@main
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang:1.22.0-alpine3.18

RUN apk add --no-cache --update poppler-utils

WORKDIR /app

COPY testdata ./testdata
COPY go.* ./
COPY *.go ./

RUN go test -v

0 comments on commit 55fe28e

Please sign in to comment.