Skip to content

Bump actions/checkout from 3 to 4 #38

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #38

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.18', '1.19' ]
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"