Skip to content

Update build

Update build #40

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.20', '1.21' ]
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Check out code
uses: actions/checkout@v4
- name: Build code
run: |
go build ./cmd/...
- name: Check API with invalid API key (and invalid PDF)
env:
PDFTABLES_API_KEY: ${{ secrets.PDFTABLES_API_KEY }}
run: |
./pdftables-api 2>&1 README.md | grep "unauthorized"