27 lines
459 B
YAML
27 lines
459 B
YAML
name: Build and test
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: make (BUILD=debug)
|
|
run: make
|
|
|
|
- name: make (BUILD=release)
|
|
run: make BUILD=release
|
|
|
|
- name: Run tests
|
|
run: ./test.sh
|
|
|
|
- name: Test output against jq
|
|
run: ./bin/release/parse sample-files/large-file.json | jq >/dev/null
|