.github/workflows/ci.yml
name: CI
on: push
jobs:
build:
name: build and test
runs-on: ubuntu-latest
env:
BUILDER_NAME: "GitHub Actions"
BUILDER_EMAIL: noreply@actions.github.com
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: 1.17
id: go
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: install dependencies
run: |
sudo wget https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-1-amd64.deb
sudo dpkg -i pandoc-2.7.3-1-amd64.deb
- name: build and run unit tests
run: make clean all test
- name: Run checkmake on Makefile
run: ./checkmake Makefile